From: Shannon Zhao <[email protected]> There is a problem for power button that it will not work if an early system_powerdown request happens before guest gpio driver loads.
Here we add the emulation of gpio_key and use it for ARM virt power button. Shannon Zhao (2): hw/gpio: Add the emulation of gpio_key ARM: Virt: Use gpio_key for power button default-configs/arm-softmmu.mak | 1 + hw/arm/virt.c | 7 ++- hw/gpio/Makefile.objs | 1 + hw/gpio/gpio_key.c | 100 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 107 insertions(+), 2 deletions(-) create mode 100644 hw/gpio/gpio_key.c -- 2.0.4
