pc: add pc-0.15
PATCH 1/2 pc: add pc-0.15
Signed-off-by Anthony Liguori <[email protected]>
--- hw/pc_piix.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
hw/pc_piix.c +9 -0
@@ -321,6 +321,14 @@ static QEMUMachine pc_machine_v1_0 = { .is_default = 1, }; +static QEMUMachine pc_machine_v0_15 = { + .name ="pc-0.15" , + .desc ="Standard PC" , + .init = pc_init_pci, + .max_cpus =255 , + .is_default =1 , +}; +static QEMUMachine pc_machine_v0_14 = { .name ="pc-0.14" , .desc ="Standard PC" ,
@@ -572,6 +580,7 @@ static QEMUMachine xenfv_machine = {static void pc_machine_init (void ) {qemu_register_machine (&pc_machine_v1_0); +qemu_register_machine (&pc_machine_v0_15);qemu_register_machine (&pc_machine_v0_14);qemu_register_machine (&pc_machine_v0_13);qemu_register_machine (&pc_machine_v0_12);
Signature · 1 line
1.7.4.1
PATCH 2/2 pc: fix event_idx compatibility for virtio devices
event_idx was introduced in 0.15 and must be disabled for all virtio-pci devices (including virtio-balloon-pci).
Signed-off-by Anthony Liguori <[email protected]>
--- hw/pc_piix.c | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-)
hw/pc_piix.c +32 -0
@@ -343,6 +343,22 @@ static QEMUMachine pc_machine_v0_14 = { .driver = "qxl-vga", .property = "revision", .value = stringify(2), + },{ + .driver = "virtio-blk-pci", + .property = "event_idx", + .value = "off", + },{ + .driver = "virtio-serial-pci", + .property = "event_idx", + .value = "off", + },{ + .driver = "virtio-net-pci", + .property = "event_idx", + .value = "off", + },{ + .driver = "virtio-balloon-pci", + .property = "event_idx", + .value = "off", }, { /* end of list */ } },
@@ -383,6 +399,10 @@ static QEMUMachine pc_machine_v0_13 = { .property = "event_idx", .value = "off", },{ + .driver = "virtio-balloon-pci", + .property = "event_idx", + .value = "off", + },{ .driver = "AC97", .property = "use_broken_id", .value = stringify(1),
@@ -430,6 +450,10 @@ static QEMUMachine pc_machine_v0_12 = { .property = "event_idx", .value = "off", },{ + .driver = "virtio-balloon-pci", + .property = "event_idx", + .value = "off", + },{ .driver = "AC97", .property = "use_broken_id", .value = stringify(1),
@@ -485,6 +509,10 @@ static QEMUMachine pc_machine_v0_11 = { .property = "event_idx", .value = "off", },{ + .driver = "virtio-balloon-pci", + .property = "event_idx", + .value = "off", + },{ .driver = "AC97", .property = "use_broken_id", .value = stringify(1),
@@ -552,6 +580,10 @@ static QEMUMachine pc_machine_v0_10 = { .property = "event_idx", .value = "off", },{ + .driver = "virtio-balloon-pci", + .property = "event_idx", + .value = "off", + },{ .driver = "AC97", .property = "use_broken_id", .value = stringify(1),
Signature · 1 line
1.7.4.1
Quoted 1 line · Anthony Liguori
Signed-off-by Anthony Liguori<[email protected]>
I should add that both of these are stable candidates. The second one in particular.
Regards,
Anthony Liguori
Quoted 31 lines
--- hw/pc_piix.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)hw/pc_piix.c +9
-0@@ -321,6 +321,14 @@ static QEMUMachine pc_machine_v1_0 = { .is_default = 1, }; +static QEMUMachine pc_machine_v0_15 = { + .name ="pc-0.15" , + .desc ="Standard PC" , + .init = pc_init_pci, + .max_cpus =255 , + .is_default =1 , +}; +static QEMUMachine pc_machine_v0_14 = { .name ="pc-0.14" , .desc ="Standard PC" ,@@ -572,6 +580,7 @@ static QEMUMachine xenfv_machine = {static void pc_machine_init (void ) {qemu_register_machine (&pc_machine_v1_0); +qemu_register_machine (&pc_machine_v0_15);qemu_register_machine (&pc_machine_v0_14);qemu_register_machine (&pc_machine_v0_13);qemu_register_machine (&pc_machine_v0_12);