qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL v2 0/8] Trivial patches for 22 February to 8 March 2013
@ 2013-03-08 12:21 Stefan Hajnoczi
  2013-03-08 12:21 ` [Qemu-devel] [PATCH 1/8] configure: Create link to icon bitmap for out-of-tree builds Stefan Hajnoczi
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Stefan Hajnoczi @ 2013-03-08 12:21 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori, Stefan Hajnoczi

I misplaced some patches by accident, this is the fixed pull request.

The following changes since commit 0bc472a9d6b80567c212023c5eae413f4dfb53ad:

  hw/nand.c: correct the sense of the BUSY/READY status bit (2013-03-07 09:27:11 +0100)

are available in the git repository at:

  git://github.com/stefanha/qemu.git trivial-patches

for you to fetch changes up to db2d5eba652ecb7420ac4ef79fc747ef391ad0d9:

  Fix the wrong description in qemu manual (2013-03-08 13:15:27 +0100)

----------------------------------------------------------------
Cole Robinson (1):
      rtc-test: Fix test failures with recent glib

Jan Kiszka (1):
      configure: Create link to icon bitmap for out-of-tree builds

Lei Li (2):
      osdep: replace setsockopt by qemu_setsockopt
      Fix the wrong description in qemu manual

Michal Privoznik (1):
      configure: Require at least spice-protocol-0.12.3

Paolo Bonzini (1):
      lm32: remove unused function

Peter Maydell (1):
      pci_host: Drop write-only address_space field

Stefan Berger (1):
      rng-random: Use qemu_open / qemu_close

 backends/rng-random.c |  4 ++--
 configure             |  3 ++-
 hw/milkymist-hw.h     | 16 ----------------
 hw/pci/pci_host.h     |  1 -
 hw/piix_pci.c         |  1 -
 hw/ppc/prep.c         |  1 -
 qemu-options.hx       |  2 +-
 tests/rtc-test.c      |  4 ++--
 util/osdep.c          |  4 ++--
 9 files changed, 9 insertions(+), 27 deletions(-)

-- 
1.8.1.4

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [PATCH 1/8] configure: Create link to icon bitmap for out-of-tree builds
  2013-03-08 12:21 [Qemu-devel] [PULL v2 0/8] Trivial patches for 22 February to 8 March 2013 Stefan Hajnoczi
@ 2013-03-08 12:21 ` Stefan Hajnoczi
  2013-03-08 12:21 ` [Qemu-devel] [PATCH 2/8] rtc-test: Fix test failures with recent glib Stefan Hajnoczi
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Stefan Hajnoczi @ 2013-03-08 12:21 UTC (permalink / raw)
  To: qemu-devel; +Cc: Jan Kiszka, Anthony Liguori, Stefan Hajnoczi

From: Jan Kiszka <jan.kiszka@siemens.com>

This allows to pick up the icon when starting QEMU directly from an
out-of-tree build directory.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index 2f98c5a..87b2e73 100755
--- a/configure
+++ b/configure
@@ -4369,6 +4369,7 @@ FILES="$FILES tests/tcg/lm32/Makefile po/Makefile"
 FILES="$FILES pc-bios/optionrom/Makefile pc-bios/keymaps"
 FILES="$FILES pc-bios/spapr-rtas/Makefile"
 FILES="$FILES roms/seabios/Makefile roms/vgabios/Makefile"
+FILES="$FILES pc-bios/qemu-icon.bmp"
 for bios_file in \
     $source_path/pc-bios/*.bin \
     $source_path/pc-bios/*.aml \
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Qemu-devel] [PATCH 2/8] rtc-test: Fix test failures with recent glib
  2013-03-08 12:21 [Qemu-devel] [PULL v2 0/8] Trivial patches for 22 February to 8 March 2013 Stefan Hajnoczi
  2013-03-08 12:21 ` [Qemu-devel] [PATCH 1/8] configure: Create link to icon bitmap for out-of-tree builds Stefan Hajnoczi
@ 2013-03-08 12:21 ` Stefan Hajnoczi
  2013-03-08 12:21 ` [Qemu-devel] [PATCH 3/8] lm32: remove unused function Stefan Hajnoczi
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Stefan Hajnoczi @ 2013-03-08 12:21 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori, qemu-stable, Stefan Hajnoczi, Cole Robinson

From: Cole Robinson <crobinso@redhat.com>

As of glib 2.35.4, glib changed its logic for ordering test cases:

https://bugzilla.gnome.org/show_bug.cgi?id=694487

This was causing failures in rtc-test. Group the reordered test
cases into their own suite, which maintains the original ordering.

CC: qemu-stable@nongnu.org
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 tests/rtc-test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/rtc-test.c b/tests/rtc-test.c
index c5fd042..9ab583b 100644
--- a/tests/rtc-test.c
+++ b/tests/rtc-test.c
@@ -565,8 +565,8 @@ int main(int argc, char **argv)
     qtest_add_func("/rtc/basic/bcd-12h", basic_12h_bcd);
     qtest_add_func("/rtc/set-year/20xx", set_year_20xx);
     qtest_add_func("/rtc/set-year/1980", set_year_1980);
-    qtest_add_func("/rtc/register_b_set_flag", register_b_set_flag);
-    qtest_add_func("/rtc/fuzz-registers", fuzz_registers);
+    qtest_add_func("/rtc/misc/register_b_set_flag", register_b_set_flag);
+    qtest_add_func("/rtc/misc/fuzz-registers", fuzz_registers);
     ret = g_test_run();
 
     if (s) {
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Qemu-devel] [PATCH 3/8] lm32: remove unused function
  2013-03-08 12:21 [Qemu-devel] [PULL v2 0/8] Trivial patches for 22 February to 8 March 2013 Stefan Hajnoczi
  2013-03-08 12:21 ` [Qemu-devel] [PATCH 1/8] configure: Create link to icon bitmap for out-of-tree builds Stefan Hajnoczi
  2013-03-08 12:21 ` [Qemu-devel] [PATCH 2/8] rtc-test: Fix test failures with recent glib Stefan Hajnoczi
@ 2013-03-08 12:21 ` Stefan Hajnoczi
  2013-03-08 12:21 ` [Qemu-devel] [PATCH 4/8] osdep: replace setsockopt by qemu_setsockopt Stefan Hajnoczi
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Stefan Hajnoczi @ 2013-03-08 12:21 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini, Anthony Liguori, Stefan Hajnoczi

From: Paolo Bonzini <pbonzini@redhat.com>

The milkymist-minimac device in fact does not exist at all.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Michael Walle <michael@walle.cc>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 hw/milkymist-hw.h | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/hw/milkymist-hw.h b/hw/milkymist-hw.h
index c8bd7e9..5def311 100644
--- a/hw/milkymist-hw.h
+++ b/hw/milkymist-hw.h
@@ -170,22 +170,6 @@ static inline DeviceState *milkymist_ac97_create(hwaddr base,
     return dev;
 }
 
-static inline DeviceState *milkymist_minimac_create(hwaddr base,
-        qemu_irq rx_irq, qemu_irq tx_irq)
-{
-    DeviceState *dev;
-
-    qemu_check_nic_model(&nd_table[0], "minimac");
-    dev = qdev_create(NULL, "milkymist-minimac");
-    qdev_set_nic_properties(dev, &nd_table[0]);
-    qdev_init_nofail(dev);
-    sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, base);
-    sysbus_connect_irq(SYS_BUS_DEVICE(dev), 0, rx_irq);
-    sysbus_connect_irq(SYS_BUS_DEVICE(dev), 1, tx_irq);
-
-    return dev;
-}
-
 static inline DeviceState *milkymist_minimac2_create(hwaddr base,
         hwaddr buffers_base, qemu_irq rx_irq, qemu_irq tx_irq)
 {
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Qemu-devel] [PATCH 4/8] osdep: replace setsockopt by qemu_setsockopt
  2013-03-08 12:21 [Qemu-devel] [PULL v2 0/8] Trivial patches for 22 February to 8 March 2013 Stefan Hajnoczi
                   ` (2 preceding siblings ...)
  2013-03-08 12:21 ` [Qemu-devel] [PATCH 3/8] lm32: remove unused function Stefan Hajnoczi
@ 2013-03-08 12:21 ` Stefan Hajnoczi
  2013-03-08 12:21 ` [Qemu-devel] [PATCH 5/8] configure: Require at least spice-protocol-0.12.3 Stefan Hajnoczi
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Stefan Hajnoczi @ 2013-03-08 12:21 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori, Lei Li, Stefan Hajnoczi

From: Lei Li <lilei@linux.vnet.ibm.com>

Fix the compiler warning when cross build qemu-ga
for windows by using qemu_setsockopt() instead of
setsockopt().

util/osdep.c: In function 'socket_set_nodelay':
util/osdep.c:69:5: warning: passing argument 4 of 'setsockopt' from
                   incompatible pointer type [enabled by default]
In file included from /home/lei/qemu_b/include/sysemu/os-win32.h:30:0,
                 from /home/lei/qemu_b/include/qemu-common.h:46,
                 from util/osdep.c:48:
/usr/i686-w64-mingw32/sys-root/mingw/include/winsock2.h:990:63: note:
                 expected 'const char *' but argument is of type 'int *'

Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 util/osdep.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/util/osdep.c b/util/osdep.c
index c408261..bd59ac9 100644
--- a/util/osdep.c
+++ b/util/osdep.c
@@ -57,7 +57,7 @@ static const char *qemu_version = QEMU_VERSION;
 int socket_set_cork(int fd, int v)
 {
 #if defined(SOL_TCP) && defined(TCP_CORK)
-    return setsockopt(fd, SOL_TCP, TCP_CORK, &v, sizeof(v));
+    return qemu_setsockopt(fd, SOL_TCP, TCP_CORK, &v, sizeof(v));
 #else
     return 0;
 #endif
@@ -66,7 +66,7 @@ int socket_set_cork(int fd, int v)
 int socket_set_nodelay(int fd)
 {
     int v = 1;
-    return setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &v, sizeof(v));
+    return qemu_setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &v, sizeof(v));
 }
 
 int qemu_madvise(void *addr, size_t len, int advice)
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Qemu-devel] [PATCH 5/8] configure: Require at least spice-protocol-0.12.3
  2013-03-08 12:21 [Qemu-devel] [PULL v2 0/8] Trivial patches for 22 February to 8 March 2013 Stefan Hajnoczi
                   ` (3 preceding siblings ...)
  2013-03-08 12:21 ` [Qemu-devel] [PATCH 4/8] osdep: replace setsockopt by qemu_setsockopt Stefan Hajnoczi
@ 2013-03-08 12:21 ` Stefan Hajnoczi
  2013-03-08 12:21 ` [Qemu-devel] [PATCH 6/8] rng-random: Use qemu_open / qemu_close Stefan Hajnoczi
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Stefan Hajnoczi @ 2013-03-08 12:21 UTC (permalink / raw)
  To: qemu-devel; +Cc: Michal Privoznik, Anthony Liguori, Stefan Hajnoczi

From: Michal Privoznik <mprivozn@redhat.com>

As of 5a49d3e9 we assume SPICE_PORT_EVENT_BREAK to be defined.
However, it is defined not in 0.12.2 what we require now, but in
0.12.3.  Therefore in order to prevent build failure we must
adjust our minimal requirements.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 87b2e73..f2c46b2 100755
--- a/configure
+++ b/configure
@@ -2871,7 +2871,7 @@ EOF
   spice_cflags=$($pkg_config --cflags spice-protocol spice-server 2>/dev/null)
   spice_libs=$($pkg_config --libs spice-protocol spice-server 2>/dev/null)
   if $pkg_config --atleast-version=0.12.0 spice-server >/dev/null 2>&1 && \
-     $pkg_config --atleast-version=0.12.2 spice-protocol > /dev/null 2>&1 && \
+     $pkg_config --atleast-version=0.12.3 spice-protocol > /dev/null 2>&1 && \
      compile_prog "$spice_cflags" "$spice_libs" ; then
     spice="yes"
     libs_softmmu="$libs_softmmu $spice_libs"
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Qemu-devel] [PATCH 6/8] rng-random: Use qemu_open / qemu_close
  2013-03-08 12:21 [Qemu-devel] [PULL v2 0/8] Trivial patches for 22 February to 8 March 2013 Stefan Hajnoczi
                   ` (4 preceding siblings ...)
  2013-03-08 12:21 ` [Qemu-devel] [PATCH 5/8] configure: Require at least spice-protocol-0.12.3 Stefan Hajnoczi
@ 2013-03-08 12:21 ` Stefan Hajnoczi
  2013-03-08 12:21 ` [Qemu-devel] [PATCH 7/8] pci_host: Drop write-only address_space field Stefan Hajnoczi
  2013-03-08 12:21 ` [Qemu-devel] [PATCH 8/8] Fix the wrong description in qemu manual Stefan Hajnoczi
  7 siblings, 0 replies; 9+ messages in thread
From: Stefan Hajnoczi @ 2013-03-08 12:21 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori, Stefan Hajnoczi, Stefan Berger

From: Stefan Berger <stefanb@linux.vnet.ibm.com>

In the rng backend use qemu_open and qemu_close rather than POSIX
open/close.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 backends/rng-random.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/backends/rng-random.c b/backends/rng-random.c
index 0d11088..acd20af 100644
--- a/backends/rng-random.c
+++ b/backends/rng-random.c
@@ -74,7 +74,7 @@ static void rng_random_opened(RngBackend *b, Error **errp)
         error_set(errp, QERR_INVALID_PARAMETER_VALUE,
                   "filename", "a valid filename");
     } else {
-        s->fd = open(s->filename, O_RDONLY | O_NONBLOCK);
+        s->fd = qemu_open(s->filename, O_RDONLY | O_NONBLOCK);
 
         if (s->fd == -1) {
             error_set(errp, QERR_OPEN_FILE_FAILED, s->filename);
@@ -130,7 +130,7 @@ static void rng_random_finalize(Object *obj)
     qemu_set_fd_handler(s->fd, NULL, NULL, NULL);
 
     if (s->fd != -1) {
-        close(s->fd);
+        qemu_close(s->fd);
     }
 
     g_free(s->filename);
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Qemu-devel] [PATCH 7/8] pci_host: Drop write-only address_space field
  2013-03-08 12:21 [Qemu-devel] [PULL v2 0/8] Trivial patches for 22 February to 8 March 2013 Stefan Hajnoczi
                   ` (5 preceding siblings ...)
  2013-03-08 12:21 ` [Qemu-devel] [PATCH 6/8] rng-random: Use qemu_open / qemu_close Stefan Hajnoczi
@ 2013-03-08 12:21 ` Stefan Hajnoczi
  2013-03-08 12:21 ` [Qemu-devel] [PATCH 8/8] Fix the wrong description in qemu manual Stefan Hajnoczi
  7 siblings, 0 replies; 9+ messages in thread
From: Stefan Hajnoczi @ 2013-03-08 12:21 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Maydell, Anthony Liguori, Stefan Hajnoczi

From: Peter Maydell <peter.maydell@linaro.org>

The address_space field of PCIHostState was only ever written, never used.
Drop it completely.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 hw/pci/pci_host.h | 1 -
 hw/piix_pci.c     | 1 -
 hw/ppc/prep.c     | 1 -
 3 files changed, 3 deletions(-)

diff --git a/hw/pci/pci_host.h b/hw/pci/pci_host.h
index 1845d4d..236cd0f 100644
--- a/hw/pci/pci_host.h
+++ b/hw/pci/pci_host.h
@@ -40,7 +40,6 @@ struct PCIHostState {
     MemoryRegion conf_mem;
     MemoryRegion data_mem;
     MemoryRegion mmcfg;
-    MemoryRegion *address_space;
     uint32_t config_reg;
     PCIBus *bus;
 };
diff --git a/hw/piix_pci.c b/hw/piix_pci.c
index 6c77e49..9246983 100644
--- a/hw/piix_pci.c
+++ b/hw/piix_pci.c
@@ -244,7 +244,6 @@ static PCIBus *i440fx_common_init(const char *device_name,
 
     dev = qdev_create(NULL, "i440FX-pcihost");
     s = PCI_HOST_BRIDGE(dev);
-    s->address_space = address_space_mem;
     b = pci_bus_new(dev, NULL, pci_address_space,
                     address_space_io, 0);
     s->bus = b;
diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c
index e06dded..2920911 100644
--- a/hw/ppc/prep.c
+++ b/hw/ppc/prep.c
@@ -567,7 +567,6 @@ static void ppc_prep_init(QEMUMachineInitArgs *args)
 
     dev = qdev_create(NULL, "raven-pcihost");
     pcihost = PCI_HOST_BRIDGE(dev);
-    pcihost->address_space = get_system_memory();
     object_property_add_child(qdev_get_machine(), "raven", OBJECT(dev), NULL);
     qdev_init_nofail(dev);
     pci_bus = (PCIBus *)qdev_get_child_bus(dev, "pci.0");
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Qemu-devel] [PATCH 8/8] Fix the wrong description in qemu manual
  2013-03-08 12:21 [Qemu-devel] [PULL v2 0/8] Trivial patches for 22 February to 8 March 2013 Stefan Hajnoczi
                   ` (6 preceding siblings ...)
  2013-03-08 12:21 ` [Qemu-devel] [PATCH 7/8] pci_host: Drop write-only address_space field Stefan Hajnoczi
@ 2013-03-08 12:21 ` Stefan Hajnoczi
  7 siblings, 0 replies; 9+ messages in thread
From: Stefan Hajnoczi @ 2013-03-08 12:21 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori, Lei Li, Stefan Hajnoczi

From: Lei Li <lilei@linux.vnet.ibm.com>

Fix LP#1151450 the wrong description in qemu manual:

'qemu-system-x86_84' should be 'qemu-system-x86_64'.

Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 qemu-options.hx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qemu-options.hx b/qemu-options.hx
index 6f9334a..cd76f2a 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -2132,7 +2132,7 @@ gluster[+transport]://[server[:port]]/volname/image[?socket=...]
 
 Example
 @example
-qemu-system-x86_84 --drive file=gluster://192.0.2.1/testvol/a.img
+qemu-system-x86_64 --drive file=gluster://192.0.2.1/testvol/a.img
 @end example
 
 See also @url{http://www.gluster.org}.
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-03-08 12:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-08 12:21 [Qemu-devel] [PULL v2 0/8] Trivial patches for 22 February to 8 March 2013 Stefan Hajnoczi
2013-03-08 12:21 ` [Qemu-devel] [PATCH 1/8] configure: Create link to icon bitmap for out-of-tree builds Stefan Hajnoczi
2013-03-08 12:21 ` [Qemu-devel] [PATCH 2/8] rtc-test: Fix test failures with recent glib Stefan Hajnoczi
2013-03-08 12:21 ` [Qemu-devel] [PATCH 3/8] lm32: remove unused function Stefan Hajnoczi
2013-03-08 12:21 ` [Qemu-devel] [PATCH 4/8] osdep: replace setsockopt by qemu_setsockopt Stefan Hajnoczi
2013-03-08 12:21 ` [Qemu-devel] [PATCH 5/8] configure: Require at least spice-protocol-0.12.3 Stefan Hajnoczi
2013-03-08 12:21 ` [Qemu-devel] [PATCH 6/8] rng-random: Use qemu_open / qemu_close Stefan Hajnoczi
2013-03-08 12:21 ` [Qemu-devel] [PATCH 7/8] pci_host: Drop write-only address_space field Stefan Hajnoczi
2013-03-08 12:21 ` [Qemu-devel] [PATCH 8/8] Fix the wrong description in qemu manual Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).