summaryrefslogtreecommitdiff
path: root/tizen
diff options
context:
space:
mode:
authorSeokYeon Hwang <syeon.hwang@samsung.com>2016-11-09 14:40:37 +0900
committerSeokYeon Hwang <syeon.hwang@samsung.com>2016-11-16 13:30:31 +0900
commitad7a49ca06833095318392097f4d7e7b15c0ce31 (patch)
tree26d8a00cc9a23609b55d75422456e559ffde5374 /tizen
parentaa1886327249104745d6dbdfaaf553c6bc0ab6e8 (diff)
downloadqemu-ad7a49ca06833095318392097f4d7e7b15c0ce31.tar.gz
qemu-ad7a49ca06833095318392097f4d7e7b15c0ce31.tar.bz2
qemu-ad7a49ca06833095318392097f4d7e7b15c0ce31.zip
maru_board: apply compat property for HAX
HAX cannot support virtio-pci modern (virtio 1.0) mode. So we use legacy (virtio 0.9) mode for HAX. Change-Id: I901590736f34e4d2d31ebd0bf41315882c7b6e83 Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
Diffstat (limited to 'tizen')
-rw-r--r--tizen/src/hw/maru_board.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tizen/src/hw/maru_board.c b/tizen/src/hw/maru_board.c
index 760dd4b441..ea5798c4dd 100644
--- a/tizen/src/hw/maru_board.c
+++ b/tizen/src/hw/maru_board.c
@@ -48,6 +48,13 @@ static void maru_x86_board_init(MachineState *machine)
maru_device_init();
}
+#define HAX_HW_COMPAT_2_6 \
+ {\
+ .driver = "virtio-pci",\
+ .property = "disable-modern",\
+ .value = "on",\
+ },
+
static void maru_x86_machine_options(MachineClass *m)
{
m->family = "pc_piix";
@@ -60,6 +67,9 @@ static void maru_x86_machine_options(MachineClass *m)
m->no_cdrom = 1;
m->no_sdcard = 1;
m->default_boot_order = "c";
+#ifdef CONFIG_HAX
+ SET_MACHINE_COMPAT(m, HAX_HW_COMPAT_2_6);
+#endif
}
DEFINE_PC_MACHINE(maru, "maru-x86-machine", maru_x86_board_init,