Skip to contentSkip to conversation

PowerPC patch queue 2014-03-13 #2

GIT PULL Applied Andreas Färber 2 participants 4 messages Mar 13, 2014

lore
Share & tools
lore
#0 lore raw

Hello Peter,

Please pull the PowerPC queue into qemu.git master.

Regards,
Andreas

Cc 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.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(-)
#1 lore raw

[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
index b90df9a..c01304d 100644
@@ -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
#2 lore raw

[Qemu-devel] [PULL for-2.0 2/2] spapr: Fix return value of vga initialization

In reply to Andreas Färber

From: 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
index bf46c38..5c9a154 100644
@@ -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
index 98f6460..842e897 100644
@@ -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
#3 lore raw
In reply to Andreas Färber
Quoted 22 lines · Andreas Färber

Hello Peter,

Please pull the PowerPC queue into qemu.git master.

Regards,
Andreas

Cc 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.git tags/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