Hello community,

here is the log from the commit of package qemu for openSUSE:Factory checked in 
at 2013-09-13 14:43:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/qemu (Old)
 and      /work/SRC/openSUSE:Factory/.qemu.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "qemu"

Changes:
--------
--- /work/SRC/openSUSE:Factory/qemu/qemu-linux-user.changes     2013-08-19 
13:31:18.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.qemu.new/qemu-linux-user.changes        
2013-09-13 14:43:28.000000000 +0200
@@ -1,0 +2,5 @@
+Sat Aug 17 12:12:57 UTC 2013 - [email protected]
+
+- Fix gdbstub for arm/m68k/ppc guests (from pending upstream pull)
+
+-------------------------------------------------------------------
--- /work/SRC/openSUSE:Factory/qemu/qemu.changes        2013-08-19 
13:31:18.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.qemu.new/qemu.changes   2013-09-13 
14:43:28.000000000 +0200
@@ -1,0 +2,17 @@
+Mon Aug 26 06:40:22 UTC 2013 - [email protected]
+
+- Enabled usb-redirection
+* Fixes starting VMs in gnome-boxes (bnc#839703)
+
+-------------------------------------------------------------------
+Sat Aug 17 13:43:13 UTC 2013 - [email protected]
+
+- Enable Xen support to allow testing our QEMU in place of Xen's
+  This prepares for consolidating QEMU packaging further.
+
+-------------------------------------------------------------------
+Sat Aug 17 12:12:57 UTC 2013 - [email protected]
+
+- Fix gdbstub for arm/m68k/ppc guests (from pending upstream pull)
+
+-------------------------------------------------------------------

New:
----
  0038-gdbstub-Fix-gdb_register_coprocesso.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ qemu-linux-user.spec ++++++
--- /var/tmp/diff_new_pack.r17yEo/_old  2013-09-13 14:43:29.000000000 +0200
+++ /var/tmp/diff_new_pack.r17yEo/_new  2013-09-13 14:43:29.000000000 +0200
@@ -62,6 +62,7 @@
 Patch0035:      0035-Make-char-muxer-more-robust-wrt-sma.patch
 Patch0036:      0036-linux-user-lseek-explicitly-cast-no.patch
 Patch0037:      0037-virtfs-proxy-helper-Provide-__u64-f.patch
+Patch0038:      0038-gdbstub-Fix-gdb_register_coprocesso.patch
 # Please do not add patches manually here, run update_git.sh.
 # this is to make lint happy
 Source300:      rpmlintrc
@@ -151,6 +152,7 @@
 %patch0035 -p1
 %patch0036 -p1
 %patch0037 -p1
+%patch0038 -p1
 
 %build
 ./configure --prefix=%_prefix --sysconfdir=%_sysconfdir \

++++++ qemu.spec ++++++
--- /var/tmp/diff_new_pack.r17yEo/_old  2013-09-13 14:43:29.000000000 +0200
+++ /var/tmp/diff_new_pack.r17yEo/_new  2013-09-13 14:43:29.000000000 +0200
@@ -62,6 +62,7 @@
 Patch0035:      0035-Make-char-muxer-more-robust-wrt-sma.patch
 Patch0036:      0036-linux-user-lseek-explicitly-cast-no.patch
 Patch0037:      0037-virtfs-proxy-helper-Provide-__u64-f.patch
+Patch0038:      0038-gdbstub-Fix-gdb_register_coprocesso.patch
 # Please do not add patches manually here, run update_git.sh.
 # this is to make lint happy
 Source300:      rpmlintrc
@@ -106,9 +107,15 @@
 BuildRequires:  ncurses-devel
 BuildRequires:  pwdutils
 BuildRequires:  python
+%if 0%{?sles_version} != 11 
+BuildRequires:  usbredir-devel
+%endif
 %if 0%{?suse_version} >= 1210
 BuildRequires:  vte2-devel
 %endif
+%ifarch %ix86 x86_64
+BuildRequires:  xen-devel
+%endif
 BuildRequires:  zlib-devel
 %if 0%{?suse_version} >= 1140
 %ifarch %ix86 x86_64
@@ -211,6 +218,7 @@
 %patch0035 -p1
 %patch0036 -p1
 %patch0037 -p1
+%patch0038 -p1
 
 %build
 ./configure --prefix=%_prefix --sysconfdir=%_sysconfdir \
@@ -241,6 +249,9 @@
 %else
        --disable-spice \
 %endif
+%if 0%{?sles_version} != 11 
+       --enable-usb-redir \
+%endif
        --enable-vde \
        --enable-virtfs \
        --enable-vnc-jpeg \
@@ -248,6 +259,9 @@
        --enable-vnc-sasl \
        --enable-vnc-tls \
        --enable-vnc-ws \
+%ifarch %ix86 x86_64
+       --enable-xen \
+%endif
 
 make %{?_smp_mflags} V=1
 

++++++ 0038-gdbstub-Fix-gdb_register_coprocesso.patch ++++++
>From 1fd884e9d531b5b5b3e021eb3277a8784714df2f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20F=C3=A4rber?= <[email protected]>
Date: Mon, 12 Aug 2013 18:09:47 +0200
Subject: [PATCH] gdbstub: Fix gdb_register_coprocessor() register counting
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Commit a0e372f0c49ac01faeaeb73a6e8f50e8ac615f34 reorganized the register
counting for GDB. While it seems correct not to let the total number of
registers skyrocket in an SMP scenario through a static variable, the
distinction between total register count and 'g' packet register count
(last_reg vs. num_g_regs) got lost among the way.

Fix this by introducing CPUState::gdb_num_g_regs and using that in
gdb_handle_packet().

Reported-by: Aneesh Kumar K.V <[email protected]>
Cc: [email protected] (stable-1.6)
Tested-by: Aneesh Kumar K.V <[email protected]>
Tested-by: Max Filippov <[email protected]>
Tested-by: Peter Maydell <[email protected]>
Signed-off-by: Andreas Färber <[email protected]>
---
 gdbstub.c         | 6 ++++--
 include/qom/cpu.h | 2 ++
 qom/cpu.c         | 2 +-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/gdbstub.c b/gdbstub.c
index 1af25a6..9d067d6 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -621,6 +621,8 @@ void gdb_register_coprocessor(CPUState *cpu,
         if (g_pos != s->base_reg) {
             fprintf(stderr, "Error: Bad gdb register numbering for '%s'\n"
                     "Expected %d got %d\n", xml, g_pos, s->base_reg);
+        } else {
+            cpu->gdb_num_g_regs = cpu->gdb_num_regs;
         }
     }
 }
@@ -902,7 +904,7 @@ static int gdb_handle_packet(GDBState *s, const char 
*line_buf)
     case 'g':
         cpu_synchronize_state(s->g_cpu);
         len = 0;
-        for (addr = 0; addr < s->g_cpu->gdb_num_regs; addr++) {
+        for (addr = 0; addr < s->g_cpu->gdb_num_g_regs; addr++) {
             reg_size = gdb_read_register(s->g_cpu, mem_buf + len, addr);
             len += reg_size;
         }
@@ -914,7 +916,7 @@ static int gdb_handle_packet(GDBState *s, const char 
*line_buf)
         registers = mem_buf;
         len = strlen(p) / 2;
         hextomem((uint8_t *)registers, p, len);
-        for (addr = 0; addr < s->g_cpu->gdb_num_regs && len > 0; addr++) {
+        for (addr = 0; addr < s->g_cpu->gdb_num_g_regs && len > 0; addr++) {
             reg_size = gdb_write_register(s->g_cpu, registers, addr);
             len -= reg_size;
             registers += reg_size;
diff --git a/include/qom/cpu.h b/include/qom/cpu.h
index 0d6e95c..3e49936 100644
--- a/include/qom/cpu.h
+++ b/include/qom/cpu.h
@@ -152,6 +152,7 @@ struct kvm_run;
  * @current_tb: Currently executing TB.
  * @gdb_regs: Additional GDB registers.
  * @gdb_num_regs: Number of total registers accessible to GDB.
+ * @gdb_num_g_regs: Number of registers in GDB 'g' packets.
  * @next_cpu: Next CPU sharing TB cache.
  * @kvm_fd: vCPU file descriptor for KVM.
  *
@@ -188,6 +189,7 @@ struct CPUState {
     struct TranslationBlock *current_tb;
     struct GDBRegisterState *gdb_regs;
     int gdb_num_regs;
+    int gdb_num_g_regs;
     CPUState *next_cpu;
 
     int kvm_fd;
diff --git a/qom/cpu.c b/qom/cpu.c
index aa95108..e71e57b 100644
--- a/qom/cpu.c
+++ b/qom/cpu.c
@@ -240,7 +240,7 @@ static void cpu_common_initfn(Object *obj)
     CPUState *cpu = CPU(obj);
     CPUClass *cc = CPU_GET_CLASS(obj);
 
-    cpu->gdb_num_regs = cc->gdb_num_core_regs;
+    cpu->gdb_num_regs = cpu->gdb_num_g_regs = cc->gdb_num_core_regs;
 }
 
 static int64_t cpu_common_get_arch_id(CPUState *cpu)
++++++ qemu.spec.in ++++++
--- /var/tmp/diff_new_pack.r17yEo/_old  2013-09-13 14:43:29.000000000 +0200
+++ /var/tmp/diff_new_pack.r17yEo/_new  2013-09-13 14:43:29.000000000 +0200
@@ -70,9 +70,15 @@
 BuildRequires:  ncurses-devel
 BuildRequires:  pwdutils
 BuildRequires:  python
+%if 0%{?sles_version} != 11 
+BuildRequires:  usbredir-devel
+%endif
 %if 0%{?suse_version} >= 1210
 BuildRequires:  vte2-devel
 %endif
+%ifarch %ix86 x86_64
+BuildRequires:  xen-devel
+%endif
 BuildRequires:  zlib-devel
 %if 0%{?suse_version} >= 1140
 %ifarch %ix86 x86_64
@@ -169,6 +175,9 @@
 %else
        --disable-spice \
 %endif
+%if 0%{?sles_version} != 11 
+       --enable-usb-redir \
+%endif
        --enable-vde \
        --enable-virtfs \
        --enable-vnc-jpeg \
@@ -176,6 +185,9 @@
        --enable-vnc-sasl \
        --enable-vnc-tls \
        --enable-vnc-ws \
+%ifarch %ix86 x86_64
+       --enable-xen \
+%endif
 
 make %{?_smp_mflags} V=1
 

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to