PowerPC patch queue 2014-03-13 #2
Hello Peter,
Please pull the PowerPC queue into qemu.git master.
Regards,
Andreas
The following changes since commit d7f0a59ff02affb8270ad9b6ee7e60974ac92df0:
Merge remote-tracking branch 'remotes/kraxel/tags/pull-input-6' into staging (2014-03-13 18:37:01 +0000)
are available in the git repository at:
git://github.com/afaerber/qemu-cpu.git tags/ppc-for-2.0
for you to fetch changes up to 7effdaa32198b7077c51e29621dfca3d1b14e420:
spapr: Fix return value of vga initialization (2014-03-13 20:53:28 +0100)
----------------------------------------------------------------
PowerPC queue for 2.0
* Fixes for -device VGA
----------------------------------------------------------------
Mark Wu (2):
Fix vga_interface_type for command line argument '-device VGA'
spapr: Fix return value of vga initialization
hw/ppc/spapr.c | 4 +++- include/sysemu/sysemu.h | 2 +- vl.c | 45 ++++++++++++++++++++++++--------------------- 3 files changed, 28 insertions(+), 23 deletions(-)
[Qemu-devel] [PULL for-2.0 1/2] Fix vga_interface_type for command line argument '-device VGA'
From: Mark Wu <[email protected]>
Some machine (like pseries) initialization code determines if it has graphics according to vga_interface_type. In the original code, vga_interface_type is evaluated to VGA_NONE even if a VGA is added via '-device VGA'. It causes the machine not aware of the graphics device configured. Add a new VGA device type to indicate that it has a VGA device, which will be initialized in QOM device initialization.
--- include/sysemu/sysemu.h | 2 +- vl.c | 42 ++++++++++++++++++++++-------------------- 2 files changed, 23 insertions(+), 21 deletions(-)
include/sysemu/sysemu.h +1 -1
@@ -104,7 +104,7 @@ extern int autostart;typedef enum {VGA_NONE ,VGA_STD ,VGA_CIRRUS ,VGA_VMWARE ,VGA_XENFB ,VGA_QXL , -VGA_TCX ,VGA_CG3 , +VGA_TCX ,VGA_CG3 ,VGA_DEVICE }VGAInterfaceType ;extern int vga_interface_type;
vl.c +22 -20
92 lines not on this page · raw message
Signature · 1 line
1.8.4.5
[Qemu-devel] [PULL for-2.0 2/2] spapr: Fix return value of vga initialization
In reply to Andreas FärberFrom: Mark Wu <[email protected]>
Before spapr_vga_init will returned false if the vga is specified by the command '-device VGA' because vga_interface_type was evaluated to VGA_NONE. With the change in previous patch of this series, spapr_vga_init should return true if it's told that the vga will be initialized in flow of the generic devices initialization.
To keep '-nodefaults' have the semantics of bare minimum, it adds a check of 'has_defaults' in usb_enabled() to avoid that a USB controller is added by '-nodefautls, -device VGA' implicitly.
This patch also makes two cleanups:
1. skip initialization for VGA_NONE
2. remove the useless 'break'
--- hw/ppc/spapr.c | 4 +++- vl.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-)
hw/ppc/spapr.c +3 -1
@@ -781,13 +781,15 @@ static int spapr_vga_init(PCIBus *pci_bus) {switch (vga_interface_type) {case VGA_NONE : +return false; +case VGA_DEVICE : +return true;case VGA_STD :return pci_vga_init (pci_bus) !=NULL ;default :fprintf (stderr,"This vga model is not supported," "currently it only supports -vga std\n" );exit (0 ); -break ; } }
vl.c +2 -1
@@ -974,7 +974,8 @@ static void parse_name(QemuOpts *opts)bool usb_enabled (bool default_usb) { -return qemu_opt_get_bool (qemu_get_machine_opts (),"usb" , default_usb); +return qemu_opt_get_bool (qemu_get_machine_opts (),"usb" , + has_defaults && default_usb); }#ifndef _WIN32
Signature · 1 line
1.8.4.5
Peter Maydell
AppliedQuoted 22 lines · Andreas Färber
Hello Peter,
Please pull the PowerPC queue into qemu.git master.
Regards,
AndreasCc Peter Maydell <[email protected]>Cc Alexander Graf <[email protected]>Cc Alexey Kardashevskiy <[email protected]>Cc Paolo Bonzini <[email protected]>The following changes since commit
d7f0a59ff02affb8270ad9b6ee7e60974ac92df0:Merge remote-tracking branch 'remotes/kraxel/tags/pull-input-6' into staging (2014-03-13 18:37:01 +0000)
are available in the git repository at:
git://github.com/afaerber/qemu-cpu.gittags/ppc-for-2.0
Quoted 8 lines
for you to fetch changes up to
7effdaa32198b7077c51e29621dfca3d1b14e420:spapr: Fix return value of vga initialization (2014-03-13 20:53:28 +0100)
----------------------------------------------------------------
PowerPC queue for 2.0* Fixes for -device VGA
Applied, thanks.
-- PMM