From ad7a49ca06833095318392097f4d7e7b15c0ce31 Mon Sep 17 00:00:00 2001 From: SeokYeon Hwang Date: Wed, 9 Nov 2016 14:40:37 +0900 Subject: [PATCH] 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 --- tizen/src/hw/maru_board.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tizen/src/hw/maru_board.c b/tizen/src/hw/maru_board.c index 760dd4b..ea5798c 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, -- 2.7.4