diff options
author | Hu Tao <hutao@cn.fujitsu.com> | 2013-04-26 11:24:46 +0800 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-30 10:30:01 -0500 |
commit | 3ab135f3462af4c523a4b5969f9d6c67b2ac427a (patch) | |
tree | 185af1c5186fc74f6d74817ae3c40c2fadf05521 /hw/misc/pvpanic.c | |
parent | b42ffe60d8b510cd2f76ef50f6a1057f91a3dd34 (diff) |
pvpanic: create pvpanic by default for machine 1.5
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-id: f840042f0e1205041f8feaf0d39ca639884f3a00.1366945969.git.hutao@cn.fujitsu.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/misc/pvpanic.c')
-rw-r--r-- | hw/misc/pvpanic.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/misc/pvpanic.c b/hw/misc/pvpanic.c index a80fae5fb8..31e1b1d8e3 100644 --- a/hw/misc/pvpanic.c +++ b/hw/misc/pvpanic.c @@ -19,6 +19,7 @@ #include "qemu/log.h" #include "hw/nvram/fw_cfg.h" +#include "hw/i386/pc.h" /* The bit of supported pv event */ #define PVPANIC_F_PANICKED 0 @@ -107,6 +108,12 @@ static int pvpanic_isa_initfn(ISADevice *dev) return 0; } +int pvpanic_init(ISABus *bus) +{ + isa_create_simple(bus, TYPE_ISA_PVPANIC_DEVICE); + return 0; +} + static Property pvpanic_isa_properties[] = { DEFINE_PROP_UINT16("ioport", PVPanicState, ioport, 0x505), DEFINE_PROP_END_OF_LIST(), |