Skip to contentSkip to conversation

Trivial patches for 2016-10-08

GIT PULL Applied Michael Tokarev 2 participants 28 messages Oct 8, 2016 – Oct 10, 2016 Networking

lore
Share & tools
lore
#1 lore raw

[Qemu-devel] [PULL 13/26] MAINTAINERS: Add some more MIPS related files

In reply to Michael Tokarev

From: Thomas Huth <[email protected]>

The MIPS section is missing some related header files, and files in the hw/misc/, hw/intc/ and hw/timer/ folders.

---
 MAINTAINERS | 7 +++++++
 1 file changed, 7 insertions(+)
MAINTAINERS +7 -0
index 4a72b77..2d77759 100644
@@ -150,6 +150,13 @@ M: Yongbok Kim <[email protected]>
 S: Maintained
 F: target-mips/
 F: hw/mips/
+F: hw/misc/mips_*
+F: hw/intc/mips_gic.c
+F: hw/timer/mips_gictimer.c
+F: include/hw/mips/
+F: include/hw/misc/mips_*
+F: include/hw/intc/mips_gic.h
+F: include/hw/timer/mips_gictimer.h
 F: tests/tcg/mips/
 F: disas/mips.c
 
Signature · 1 line
2.1.4
#2 lore raw

[Qemu-devel] [PULL 14/26] MAINTAINERS: Some updates related to the SH4 machines

In reply to Michael Tokarev

From: Thomas Huth <[email protected]>

hw/intc/sh_intc.c and hw/timer/sh_timer.c seem to belong to the R2D machine, as far as I can see.
And concerning the Shix machine, it does not make much sense to have a "M:" entry here and the "S:" set to "Orphan". So I'd like to suggest to use "Odd Fixes" here instead.

---
 MAINTAINERS | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
MAINTAINERS +3 -1
index 2d77759..64f57c6 100644
@@ -675,10 +675,12 @@ R2D
 M: Magnus Damm <[email protected]>
 S: Maintained
 F: hw/sh4/r2d.c
+F: hw/intc/sh_intc.c
+F: hw/timer/sh_timer.c
 
 Shix
 M: Magnus Damm <[email protected]>
-S: Orphan
+S: Odd Fixes
 F: hw/sh4/shix.c
 
 SPARC Machines
Signature · 1 line
2.1.4
#3 lore raw

[Qemu-devel] [PULL 10/26] MAINTAINERS: Add some more rocker related files

In reply to Michael Tokarev

From: Thomas Huth <[email protected]>

The files in tests/rocker/ and docs/specs/rocker.txt should be listed in the Rocker section of MAINTAINERS.

---
 MAINTAINERS | 2 ++
 1 file changed, 2 insertions(+)
MAINTAINERS +2 -0
index a5751a6..4b17a05 100644
@@ -1023,6 +1023,8 @@ Rocker
 M: Jiri Pirko <[email protected]>
 S: Maintained
 F: hw/net/rocker/
+F: tests/rocker/
+F: docs/specs/rocker.txt
 
 NVDIMM
 M: Xiao Guangrong <[email protected]>
Signature · 1 line
2.1.4
#0 lore raw

Hi.

Here's another trivial tree pull request. Really trivial stuff all over, and many changes to MAINTAINERS file from Thomas Huth.

Please consider applying.

Thanks,

/mjt

The following changes since commit 48f592118ab42f83a1a7561c4bfd2b72a100f241:

bsd-user: fix FreeBSD build after d148d90e (2016-10-07 15:17:53 +0100)

are available in the git repository at:

git://git.corpit.ru/qemu.git tags/trivial-patches-fetch

for you to fetch changes up to 52cfcb464255b4da5115408e2a6ce3327bbcb9df:

net/filter-mirror: Fix mirror initial check typo (2016-10-08 11:25:29 +0300)

----------------------------------------------------------------
trivial patches for 2016-10-08

----------------------------------------------------------------
Chen Fan (1):
virtio: rename the bar index field name in VirtIOPCIProxy

Daniel P. Berrange (1):
char: fix missing return in error path for chardev TLS init

David Anderson (1):
qapi: make the json schema files more regular.

Eric Blake (1):
tests: Ignore test executables

Felix Janda (1):
linux-user: include <poll.h> instead of <sys/poll.h>

Greg Ungerer (1):
m68k: change default system clock for m5208evb

Jonathan Neuschäfer (1):
CODING_STYLE: Fix a typo ("have" vs. "has")

Li Qiang (1):
usb: ehci: fix memory leak in ehci_process_itd

Lin Ma (1):
maint: Add module_block.h to .gitignore

Marc-André Lureau (2):
exec: remove unused compacted argument
build-sys: fix find-in-path

Paolo Bonzini (1):
bt-hci-csr: drop unused argument

Stefan Hajnoczi (1):
qemu-options.hx: fix -chardev ringbuf typos

Thomas Huth (11):
MAINTAINERS: Add files to the Moxie section.
MAINTAINERS: Add some more files to the HMP section
MAINTAINERS: Add include/hw/audio/ to audio section
MAINTAINERS: Add some SPARC machine related files
MAINTAINERS: Add some more files to the virtio section
MAINTAINERS: Add header files to CRIS section
MAINTAINERS: Add some more rocker related files
MAINTAINERS: Add some more pattern to recognize all win32 related files
MAINTAINERS: Add usermode related config files
MAINTAINERS: Add some more MIPS related files
MAINTAINERS: Some updates related to the SH4 machines

Wei Yang (1):
bitmap: refine and move BITMAP_{FIRST/LAST}_WORD_MASK

Zhang Chen (1):
net/filter-mirror: Fix mirror initial check typo

 .gitignore              |  1 +
 CODING_STYLE            |  2 +-
 MAINTAINERS             | 38 +++++++++++++++++++++++++++++++++-----
 exec.c                  |  8 +++-----
 hw/arm/nseries.c        |  3 +--
 hw/bt/hci-csr.c         |  2 +-
 hw/display/virtio-vga.c |  4 ++--
 hw/m68k/mcf5208.c       |  2 +-
 hw/usb/hcd-ehci.c       |  1 +
 hw/virtio/virtio-pci.c  | 20 ++++++++++----------
 hw/virtio/virtio-pci.h  |  8 ++++----
 include/hw/bt.h         |  2 +-
 include/qemu/bitmap.h   |  7 ++-----
 linux-user/syscall.c    |  2 +-
 net/filter-mirror.c     |  4 ++--
 qapi-schema.json        |  3 +--
 qapi/block-core.json    |  5 -----
 qemu-char.c             |  1 +
 qemu-options.hx         |  2 +-
 rules.mak               |  2 +-
 tests/.gitignore        |  2 ++
 util/bitmap.c           |  2 --
 22 files changed, 70 insertions(+), 51 deletions(-)
#4 lore raw

[Qemu-devel] [PULL 16/26] qapi: make the json schema files more regular.

From: David Anderson <[email protected]>

This makes it easier to parse the schema file for tool generation:
each paragraph is either a non-docstring comment, or a docstring immediately followed by a Python dict describing an API item.

---
 qapi-schema.json     | 3 +--
 qapi/block-core.json | 5 -----
 2 files changed, 1 insertion(+), 7 deletions(-)
qapi-schema.json +1 -2
index c3dcf11..9e47b47 100644
@@ -752,6 +752,7 @@
             'cpu-throttle-increment': 'int',
             'tls-creds': 'str',
             'tls-hostname': 'str'} }
+
 ##
 # @query-migrate-parameters
 #
@@ -4118,7 +4119,6 @@
 #
 # Since 1.6
 ##
-
 { 'struct': 'RxFilterInfo',
   'data': {
     'name':               'str',
@@ -4338,7 +4338,6 @@
 #
 # Since: 2.1
 ##
-
 { 'struct': 'Memdev',
   'data': {
     'size':       'size',
qapi/block-core.json +0 -5
index 9d797b8..4badb97 100644
@@ -25,7 +25,6 @@
 # Since: 1.3
 #
 ##
-
 { 'struct': 'SnapshotInfo',
   'data': { 'id': 'str', 'name': 'str', 'vm-state-size': 'int',
             'date-sec': 'int', 'date-nsec': 'int',
@@ -81,7 +80,6 @@
 #
 # Since: 1.7
 ##
-
 { 'union': 'ImageInfoSpecific',
   'data': {
       'qcow2': 'ImageInfoSpecificQCow2',
@@ -129,7 +127,6 @@
 # Since: 1.3
 #
 ##
-
 { 'struct': 'ImageInfo',
   'data': {'filename': 'str', 'format': 'str', '*dirty-flag': 'bool',
            '*actual-size': 'int', 'virtual-size': 'int',
@@ -181,7 +178,6 @@
 # Since: 1.4
 #
 ##
-
 { 'struct': 'ImageCheck',
   'data': {'filename': 'str', 'format': 'str', 'check-errors': 'int',
            '*image-end-offset': 'int', '*corruptions': 'int', '*leaks': 'int',
@@ -518,7 +514,6 @@
 #
 # Since: 2.5
 ##
-
 { 'struct': 'BlockDeviceTimedStats',
   'data': { 'interval_length': 'int', 'min_rd_latency_ns': 'int',
             'max_rd_latency_ns': 'int', 'avg_rd_latency_ns': 'int',
Signature · 1 line
2.1.4
#5 lore raw

[Qemu-devel] [PULL 17/26] usb: ehci: fix memory leak in ehci_process_itd

In reply to Michael Tokarev

From: Li Qiang <[email protected]>

While processing isochronous transfer descriptors(iTD), if the page select(PG) field value is out of bands it will return. In this situation the ehci's sg list is not freed thus leading to a memory leak issue. This patch avoid this.

---
 hw/usb/hcd-ehci.c | 1 +
 1 file changed, 1 insertion(+)
hw/usb/hcd-ehci.c +1 -0
index b093db7..f4ece9a 100644
@@ -1426,6 +1426,7 @@ static int ehci_process_itd(EHCIState *ehci,
             if (off + len > 4096) {
                 /* transfer crosses page border */
                 if (pg == 6) {
+                    qemu_sglist_destroy(&ehci->isgl);
                     return -1;  /* avoid page pg + 1 */
                 }
                 ptr2 = (itd->bufptr[pg + 1] & ITD_BUFPTR_MASK);
Signature · 1 line
2.1.4
#6 lore raw

[Qemu-devel] [PULL 11/26] MAINTAINERS: Add some more pattern to recognize all win32 related files

In reply to Michael Tokarev

From: Thomas Huth <[email protected]>

The get_maintainer.pl script currently thinks that the win32 related files in the util and include folders are currently unmaintained. Thus let's add some additional wildcards to match these files.

---
 MAINTAINERS | 3 +++
 1 file changed, 3 insertions(+)
MAINTAINERS +3 -0
index 4b17a05..f0ab48f 100644
@@ -322,6 +322,9 @@ L: [email protected]
 M: Stefan Weil <[email protected]>
 S: Maintained
 F: *win32*
+F: */*win32*
+F: include/*/*win32*
+X: qga/*win32*
 F: qemu.nsi
 
 ARM Machines
Signature · 1 line
2.1.4
#7 lore raw

[Qemu-devel] [PULL 03/26] tests: Ignore test executables

In reply to Michael Tokarev

From: Eric Blake <[email protected]>

Commits 9ef8112a and efad6682 introduced new tests, but forgot to ignore the built executables from an in-tree build.

---
 tests/.gitignore | 2 ++
 1 file changed, 2 insertions(+)
tests/.gitignore +2 -0
index 0f0c79b..9f3d2ee 100644
@@ -12,7 +12,9 @@ rcutorture
 test-aio
 test-base64
 test-bitops
+test-blockjob
 test-blockjob-txn
+test-bufferiszero
 test-clone-visitor
 test-coroutine
 test-crypto-afsplit
Signature · 1 line
2.1.4
#8 lore raw

[Qemu-devel] [PULL 26/26] net/filter-mirror: Fix mirror initial check typo

In reply to Michael Tokarev

From: Zhang Chen <[email protected]>

---
 net/filter-mirror.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
net/filter-mirror.c +2 -2
index 35df374..0ee58d9 100644
@@ -198,7 +198,7 @@ static void filter_mirror_setup(NetFilterState *nf, Error **errp)
     MirrorState *s = FILTER_MIRROR(nf);
 
     if (!s->outdev) {
-        error_setg(errp, "filter filter mirror needs 'outdev' "
+        error_setg(errp, "filter mirror needs 'outdev' "
                    "property set");
         return;
     }
@@ -315,7 +315,7 @@ filter_mirror_set_outdev(Object *obj, const char *value, Error **errp)
     g_free(s->outdev);
     s->outdev = g_strdup(value);
     if (!s->outdev) {
-        error_setg(errp, "filter filter mirror needs 'outdev' "
+        error_setg(errp, "filter mirror needs 'outdev' "
                    "property set");
         return;
     }
Signature · 1 line
2.1.4
#9 lore raw

[Qemu-devel] [PULL 09/26] MAINTAINERS: Add header files to CRIS section

In reply to Michael Tokarev

From: Thomas Huth <[email protected]>

etraxfs_dma.h and etraxfs.h in include/hw/cris/ obviously belong to the CRIS section in MAINTAINERS.

---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
index 9e4ca02..a5751a6 100644
@@ -116,6 +116,7 @@ M: Edgar E. Iglesias <[email protected]>
 S: Maintained
 F: target-cris/
 F: hw/cris/
+F: include/hw/cris/
 F: tests/tcg/cris/
 F: disas/cris.c
 
Signature · 1 line
2.1.4
#10 lore raw

[Qemu-devel] [PULL 21/26] bitmap: refine and move BITMAP_{FIRST/LAST}_WORD_MASK

In reply to Michael Tokarev

From: Wei Yang <[email protected]>

According to linux kernel commit <89c1e79eb30> ("linux/bitmap.h: improve BITMAP_{LAST,FIRST}_WORD_MASK"), these two macro could be improved.

This patch takes this change and also move them all in header file.

---
 include/qemu/bitmap.h | 7 ++-----
 util/bitmap.c         | 2 --
 2 files changed, 2 insertions(+), 7 deletions(-)
include/qemu/bitmap.h +2 -5
index 7247f14..63ea2d0 100644
@@ -57,11 +57,8 @@
  * find_next_bit(addr, nbits, bit)	Position next set bit in *addr >= bit
  */
 
-#define BITMAP_LAST_WORD_MASK(nbits)                                    \
-    (                                                                   \
-        ((nbits) % BITS_PER_LONG) ?                                     \
-        (1UL<<((nbits) % BITS_PER_LONG))-1 : ~0UL                       \
-        )
+#define BITMAP_FIRST_WORD_MASK(start) (~0UL << ((start) & (BITS_PER_LONG - 1)))
+#define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1)))
 
 #define DECLARE_BITMAP(name,bits)                  \
         unsigned long name[BITS_TO_LONGS(bits)]
util/bitmap.c +0 -2
index 40aadfb..43ed011 100644
@@ -157,8 +157,6 @@ int slow_bitmap_andnot(unsigned long *dst, const unsigned long *bitmap1,
     return result != 0;
 }
 
-#define BITMAP_FIRST_WORD_MASK(start) (~0UL << ((start) % BITS_PER_LONG))
-
 void bitmap_set(unsigned long *map, long start, long nr)
 {
     unsigned long *p = map + BIT_WORD(start);
Signature · 1 line
2.1.4
#11 lore raw

[Qemu-devel] [PULL 19/26] m68k: change default system clock for m5208evb

In reply to Michael Tokarev

From: Greg Ungerer <[email protected]>

The shipping default setting for the Freescale M5208EVB board is to run the CPU at 166.67MHz. The current qemu emulation code for this board is defaulting to 66MHz. This results in time appearing to run way to slowly. So a "sleep 5" in a standard ColdFire Linux build takes almost 15 seconds in real time to actually complete.

Change the hard coded default to match the default hardware setting.

---
 hw/m68k/mcf5208.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/m68k/mcf5208.c +1 -1
index 9240ebf..3438314 100644
@@ -21,7 +21,7 @@
 #include "elf.h"
 #include "exec/address-spaces.h"
 
-#define SYS_FREQ 66000000
+#define SYS_FREQ 166666666
 
 #define PCSR_EN         0x0001
 #define PCSR_RLD        0x0002
Signature · 1 line
2.1.4
#12 lore raw

[Qemu-devel] [PULL 22/26] CODING_STYLE: Fix a typo ("have" vs. "has")

In reply to Michael Tokarev

From: Jonathan Neuschäfer <[email protected]>

---
 CODING_STYLE | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
CODING_STYLE +1 -1
index e7fde15..f53180b 100644
@@ -9,7 +9,7 @@ patches before submitting.
 Of course, the most important aspect in any coding style is whitespace.
 Crusty old coders who have trouble spotting the glasses on their noses
 can tell the difference between a tab and eight spaces from a distance
-of approximately fifteen parsecs.  Many a flamewar have been fought and
+of approximately fifteen parsecs.  Many a flamewar has been fought and
 lost on this issue.
 
 QEMU indents are four spaces.  Tabs are never used, except in Makefiles
Signature · 1 line
2.1.4
#13 lore raw

[Qemu-devel] [PULL 23/26] char: fix missing return in error path for chardev TLS init

In reply to Michael Tokarev

From: "Daniel P. Berrange" <[email protected]>

If the qio_channel_tls_new_(server|client) methods fail, we disconnect the client. Unfortunately a missing return means we then go on to try and run the TLS handshake on a NULL I/O channel. This gives predictably segfaulty results.

The main way to trigger this is to request a bogus TLS priority string for the TLS credentials. e.g.

-object tls-creds-x509,id=tls0,priority=wibble,...

Most other ways appear impossible to trigger except perhaps if OOM conditions cause gnutls initialization to fail.

---
 qemu-char.c | 1 +
 1 file changed, 1 insertion(+)
qemu-char.c +1 -0
index fb456ce..48a45ef 100644
@@ -3132,6 +3132,7 @@ static void tcp_chr_tls_init(CharDriverState *chr)
     if (tioc == NULL) {
         error_free(err);
         tcp_chr_disconnect(chr);
+        return;
     }
     object_unref(OBJECT(s->ioc));
     s->ioc = QIO_CHANNEL(tioc);
Signature · 1 line
2.1.4
#14 lore raw

[Qemu-devel] [PULL 02/26] bt-hci-csr: drop unused argument

In reply to Michael Tokarev

From: Paolo Bonzini <[email protected]>

---
 hw/arm/nseries.c | 3 +--
 hw/bt/hci-csr.c  | 2 +-
 include/hw/bt.h  | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)
hw/arm/nseries.c +1 -2
index fea911e..c86cf80 100644
@@ -786,8 +786,7 @@ static void n8x0_cbus_setup(struct n800_s *s)
 
 static void n8x0_uart_setup(struct n800_s *s)
 {
-    CharDriverState *radio = uart_hci_init(
-                    qdev_get_gpio_in(s->mpu->gpio, N8X0_BT_HOST_WKUP_GPIO));
+    CharDriverState *radio = uart_hci_init();
 
     qdev_connect_gpio_out(s->mpu->gpio, N8X0_BT_RESET_GPIO,
                     csrhci_pins_get(radio)[csrhci_pin_reset]);
hw/bt/hci-csr.c +1 -1
index d688372..b77c036 100644
@@ -458,7 +458,7 @@ qemu_irq *csrhci_pins_get(CharDriverState *chr)
     return s->pins;
 }
 
-CharDriverState *uart_hci_init(qemu_irq wakeup)
+CharDriverState *uart_hci_init(void)
 {
     struct csrhci_s *s = (struct csrhci_s *)
             g_malloc0(sizeof(struct csrhci_s));
include/hw/bt.h +1 -1
index 963f330..2fa22bd 100644
@@ -128,7 +128,7 @@ enum {
     __csrhci_pins,
 };
 qemu_irq *csrhci_pins_get(CharDriverState *chr);
-CharDriverState *uart_hci_init(qemu_irq wakeup);
+CharDriverState *uart_hci_init(void);
 
 /* bt-l2cap.c */
 struct bt_l2cap_device_s;
Signature · 1 line
2.1.4
#15 lore raw

[Qemu-devel] [PULL 07/26] MAINTAINERS: Add some SPARC machine related files

In reply to Michael Tokarev

From: Thomas Huth <[email protected]>

And while we're at it, remove Blue Swirl from the list of maintainers. Blue has apparently been inactive for quite a while now, so I assume he's unfortunately not available as maintainer anymore.

---
 MAINTAINERS | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
MAINTAINERS +7 -2
index 94f14ea..3ac5fbc 100644
@@ -673,22 +673,27 @@ F: hw/sh4/shix.c
 SPARC Machines
 --------------
 Sun4m
-M: Blue Swirl <[email protected]>
 M: Mark Cave-Ayland <[email protected]>
 S: Maintained
 F: hw/sparc/sun4m.c
+F: hw/dma/sparc32_dma.c
+F: hw/dma/sun4m_iommu.c
+F: include/hw/sparc/sparc32_dma.h
+F: include/hw/sparc/sun4m.h
+F: pc-bios/openbios-sparc32
 
 Sun4u
-M: Blue Swirl <[email protected]>
 M: Mark Cave-Ayland <[email protected]>
 S: Maintained
 F: hw/sparc64/sun4u.c
+F: pc-bios/openbios-sparc64
 
 Leon3
 M: Fabien Chouteau <[email protected]>
 S: Maintained
 F: hw/sparc/leon3.c
 F: hw/*/grlib*
+F: include/hw/sparc/grlib.h
 
 S390 Machines
 -------------
Signature · 1 line
2.1.4
#16 lore raw

[Qemu-devel] [PULL 05/26] MAINTAINERS: Add some more files to the HMP section

In reply to Michael Tokarev

From: Thomas Huth <[email protected]>

The hmp-commands-info.hx, hmp.h and include/monitor/hmp-target.h files were classified as unmaintained. Let's add them to the HMP section.

---
 MAINTAINERS | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
MAINTAINERS +3 -2
index adc5e4e..ba50167 100644
@@ -1183,8 +1183,9 @@ Human Monitor (HMP)
 M: Luiz Capitulino <[email protected]>
 S: Maintained
 F: monitor.c
-F: hmp.c
-F: hmp-commands.hx
+F: hmp.[ch]
+F: hmp-commands*.hx
+F: include/monitor/hmp-target.h
 T: git git://repo.or.cz/qemu/qmp-unstable.git queue/qmp
 
 Network device backends
Signature · 1 line
2.1.4
#17 lore raw

[Qemu-devel] [PULL 20/26] build-sys: fix find-in-path

In reply to Michael Tokarev

From: Marc-André Lureau <[email protected]>

Fix spelling, the GNU make text functions is not called "find-string" but "findstring".

Broken in commit 2b2e59e. Fairly harmless: its only use is in tests/tcg/Makefile, where the bug can cause the I386_TESTS not to run when they should.

---
 rules.mak | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rules.mak +1 -1
index 3fdb261..0333ae3 100644
@@ -138,7 +138,7 @@ endef
 # Looks in the PATH if the argument contains no slash, else only considers one
 # specific directory.  Returns an # empty string if the program doesn't exist
 # there.
-find-in-path = $(if $(find-string /, $1), \
+find-in-path = $(if $(findstring /, $1), \
         $(wildcard $1), \
         $(wildcard $(patsubst %, %/$1, $(subst :, ,$(PATH)))))
 
Signature · 1 line
2.1.4
#18 lore raw

[Qemu-devel] [PULL 15/26] maint: Add module_block.h to .gitignore

In reply to Michael Tokarev

From: Lin Ma <[email protected]>

Commit 0c0c1fd9 generated module_block.h automatically, Add it to .gitignore to avoid checking in it by 'git add .'.

---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)
.gitignore +1 -0
index c91d018..97aca6c 100644
@@ -55,6 +55,7 @@
 /qemu-monitor-info.texi
 /qemu-version.h
 /qemu-version.h.tmp
+/module_block.h
 /vscclient
 /fsdev/virtfs-proxy-helper
 *.[1-9]
Signature · 1 line
2.1.4
#19 lore raw

[Qemu-devel] [PULL 06/26] MAINTAINERS: Add include/hw/audio/ to audio section

In reply to Michael Tokarev

From: Thomas Huth <[email protected]>

audio.h and pcspk.h are recognized as maintained files now.

---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
index ba50167..94f14ea 100644
@@ -1046,6 +1046,7 @@ M: Gerd Hoffmann <[email protected]>
 S: Maintained
 F: audio/
 F: hw/audio/
+F: include/hw/audio/
 F: tests/ac97-test.c
 F: tests/es1370-test.c
 F: tests/intel-hda-test.c
Signature · 1 line
2.1.4
#20 lore raw

[Qemu-devel] [PULL 04/26] MAINTAINERS: Add files to the Moxie section.

In reply to Michael Tokarev

From: Thomas Huth <[email protected]>

The hw/moxie/ folder and default-configs/moxie-softmmu.mak obviously belong to the Moxie CPU.

---
 MAINTAINERS | 2 ++
 1 file changed, 2 insertions(+)
MAINTAINERS +2 -0
index 9bca506..adc5e4e 100644
@@ -157,6 +157,8 @@ M: Anthony Green <[email protected]>
 S: Maintained
 F: target-moxie/
 F: disas/moxie.c
+F: hw/moxie/
+F: default-configs/moxie-softmmu.mak
 
 OpenRISC
 M: Jia Liu <[email protected]>
Signature · 1 line
2.1.4
#21 lore raw

[Qemu-devel] [PULL 12/26] MAINTAINERS: Add usermode related config files

In reply to Michael Tokarev

From: Thomas Huth <[email protected]>

The default-configs/*-linux-user.mak belong to Linux usermode emulation, and default-configs/*-bsd-user.mak belong to BSD usermode emulation.

---
 MAINTAINERS | 2 ++
 1 file changed, 2 insertions(+)
MAINTAINERS +2 -0
index f0ab48f..4a72b77 100644
@@ -1425,11 +1425,13 @@ F: user-exec.c
 BSD user
 S: Orphan
 F: bsd-user/
+F: default-configs/*-bsd-user.mak
 
 Linux user
 M: Riku Voipio <[email protected]>
 S: Maintained
 F: linux-user/
+F: default-configs/*-linux-user.mak
 
 Tiny Code Generator (TCG)
 -------------------------
Signature · 1 line
2.1.4
#22 lore raw

[Qemu-devel] [PULL 25/26] virtio: rename the bar index field name in VirtIOPCIProxy

In reply to Michael Tokarev

From: Chen Fan <[email protected]>

the bar index names are much similar to the bar memory regions, distinguish them to improve the code readability.

---
 hw/display/virtio-vga.c |  4 ++--
 hw/virtio/virtio-pci.c  | 20 ++++++++++----------
 hw/virtio/virtio-pci.h  |  8 ++++----
 3 files changed, 16 insertions(+), 16 deletions(-)
hw/display/virtio-vga.c +2 -2
index f77b401..f9b017d 100644
@@ -120,8 +120,8 @@ static void virtio_vga_realize(VirtIOPCIProxy *vpci_dev, Error **errp)
      * virtio regions are moved to the end of bar #2, to make room for
      * the stdvga mmio registers at the start of bar #2.
      */
-    vpci_dev->modern_mem_bar = 2;
-    vpci_dev->msix_bar = 4;
+    vpci_dev->modern_mem_bar_idx = 2;
+    vpci_dev->msix_bar_idx = 4;
 
     if (!(vpci_dev->flags & VIRTIO_PCI_FLAG_PAGE_PER_VQ)) {
         /*
hw/virtio/virtio-pci.c +10 -10
index 2d60a00..06831de 100644
@@ -1551,7 +1551,7 @@ static void virtio_pci_modern_mem_region_map(VirtIOPCIProxy *proxy,
                                              struct virtio_pci_cap *cap)
 {
     virtio_pci_modern_region_map(proxy, region, cap,
-                                 &proxy->modern_bar, proxy->modern_mem_bar);
+                                 &proxy->modern_bar, proxy->modern_mem_bar_idx);
 }
 
 static void virtio_pci_modern_io_region_map(VirtIOPCIProxy *proxy,
@@ -1559,7 +1559,7 @@ static void virtio_pci_modern_io_region_map(VirtIOPCIProxy *proxy,
                                             struct virtio_pci_cap *cap)
 {
     virtio_pci_modern_region_map(proxy, region, cap,
-                                 &proxy->io_bar, proxy->modern_io_bar);
+                                 &proxy->io_bar, proxy->modern_io_bar_idx);
 }
 
 static void virtio_pci_modern_mem_region_unmap(VirtIOPCIProxy *proxy,
@@ -1670,14 +1670,14 @@ static void virtio_pci_device_plugged(DeviceState *d, Error **errp)
             memory_region_init(&proxy->io_bar, OBJECT(proxy),
                                "virtio-pci-io", 0x4);
 
-            pci_register_bar(&proxy->pci_dev, proxy->modern_io_bar,
+            pci_register_bar(&proxy->pci_dev, proxy->modern_io_bar_idx,
                              PCI_BASE_ADDRESS_SPACE_IO, &proxy->io_bar);
 
             virtio_pci_modern_io_region_map(proxy, &proxy->notify_pio,
                                             &notify_pio.cap);
         }
 
-        pci_register_bar(&proxy->pci_dev, proxy->modern_mem_bar,
+        pci_register_bar(&proxy->pci_dev, proxy->modern_mem_bar_idx,
                          PCI_BASE_ADDRESS_SPACE_MEMORY |
                          PCI_BASE_ADDRESS_MEM_PREFETCH |
                          PCI_BASE_ADDRESS_MEM_TYPE_64,
@@ -1693,7 +1693,7 @@ static void virtio_pci_device_plugged(DeviceState *d, Error **errp)
 
     if (proxy->nvectors) {
         int err = msix_init_exclusive_bar(&proxy->pci_dev, proxy->nvectors,
-                                          proxy->msix_bar);
+                                          proxy->msix_bar_idx);
         if (err) {
             /* Notice when a system that supports MSIx can't initialize it.  */
             if (err != -ENOTSUP) {
@@ -1716,7 +1716,7 @@ static void virtio_pci_device_plugged(DeviceState *d, Error **errp)
                               &virtio_pci_config_ops,
                               proxy, "virtio-pci", size);
 
-        pci_register_bar(&proxy->pci_dev, proxy->legacy_io_bar,
+        pci_register_bar(&proxy->pci_dev, proxy->legacy_io_bar_idx,
                          PCI_BASE_ADDRESS_SPACE_IO, &proxy->bar);
     }
 
@@ -1760,10 +1760,10 @@ static void virtio_pci_realize(PCIDevice *pci_dev, Error **errp)
      *   region 4+5 --  virtio modern memory (64bit) bar
      *
      */
-    proxy->legacy_io_bar  = 0;
-    proxy->msix_bar       = 1;
-    proxy->modern_io_bar  = 2;
-    proxy->modern_mem_bar = 4;
+    proxy->legacy_io_bar_idx  = 0;
+    proxy->msix_bar_idx       = 1;
+    proxy->modern_io_bar_idx  = 2;
+    proxy->modern_mem_bar_idx = 4;
 
     proxy->common.offset = 0x0;
     proxy->common.size = 0x1000;
hw/virtio/virtio-pci.h +4 -4
index 541cbdb..b4edea6 100644
@@ -143,10 +143,10 @@ struct VirtIOPCIProxy {
     MemoryRegion io_bar;
     MemoryRegion modern_cfg;
     AddressSpace modern_as;
-    uint32_t legacy_io_bar;
-    uint32_t msix_bar;
-    uint32_t modern_io_bar;
-    uint32_t modern_mem_bar;
+    uint32_t legacy_io_bar_idx;
+    uint32_t msix_bar_idx;
+    uint32_t modern_io_bar_idx;
+    uint32_t modern_mem_bar_idx;
     int config_cap;
     uint32_t flags;
     bool disable_modern;
Signature · 1 line
2.1.4
#23 lore raw

[Qemu-devel] [PULL 18/26] exec: remove unused compacted argument

In reply to Michael Tokarev

From: Marc-André Lureau <[email protected]>

Since commit b35ba30f8f when it was introduced, phys_page_compact() takes an unused compacted argument.

ubsan complains about it when launching qemu-x86_64 without arguments:
qemu/exec.c:310:5: runtime error: variable length array bound evaluates to non-positive value 0

---
 exec.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
exec.c +3 -5
index c8389f9..374c364 100644
@@ -255,7 +255,7 @@ static void phys_page_set(AddressSpaceDispatch *d,
 /* Compact a non leaf page entry. Simply detect that the entry has a single child,
  * and update our entry so we can skip it and go directly to the destination.
  */
-static void phys_page_compact(PhysPageEntry *lp, Node *nodes, unsigned long *compacted)
+static void phys_page_compact(PhysPageEntry *lp, Node *nodes)
 {
     unsigned valid_ptr = P_L2_SIZE;
     int valid = 0;
@@ -275,7 +275,7 @@ static void phys_page_compact(PhysPageEntry *lp, Node *nodes, unsigned long *com
         valid_ptr = i;
         valid++;
         if (p[i].skip) {
-            phys_page_compact(&p[i], nodes, compacted);
+            phys_page_compact(&p[i], nodes);
         }
     }
 
@@ -307,10 +307,8 @@ static void phys_page_compact(PhysPageEntry *lp, Node *nodes, unsigned long *com
 
 static void phys_page_compact_all(AddressSpaceDispatch *d, int nodes_nb)
 {
-    DECLARE_BITMAP(compacted, nodes_nb);
-
     if (d->phys_map.skip) {
-        phys_page_compact(&d->phys_map, d->map.nodes, compacted);
+        phys_page_compact(&d->phys_map, d->map.nodes);
     }
 }
 
Signature · 1 line
2.1.4
#24 lore raw

[Qemu-devel] [PULL 24/26] linux-user: include <poll.h> instead of <sys/poll.h>

In reply to Michael Tokarev

From: Felix Janda <[email protected]>

This removes the last usage of <sys/poll.h> in the code base.

---
 linux-user/syscall.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
linux-user/syscall.c +1 -1
index 0815f30..52012d4 100644
@@ -42,7 +42,7 @@ int __clone2(int (*fn)(void *), void *child_stack_base,
 #include <sys/socket.h>
 #include <sys/un.h>
 #include <sys/uio.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <sys/times.h>
 #include <sys/shm.h>
 #include <sys/sem.h>
Signature · 1 line
2.1.4
#25 lore raw

[Qemu-devel] [PULL 08/26] MAINTAINERS: Add some more files to the virtio section

In reply to Michael Tokarev

From: Thomas Huth <[email protected]>

Makefile.objs and trace-events in hw/virtio/ were not covered by MAINTAINERS yet.

---
 MAINTAINERS | 2 ++
 1 file changed, 2 insertions(+)
MAINTAINERS +2 -0
index 3ac5fbc..9e4ca02 100644
@@ -933,6 +933,8 @@ virtio
 M: Michael S. Tsirkin <[email protected]>
 S: Supported
 F: hw/*/virtio*
+F: hw/virtio/Makefile.objs
+F: hw/virtio/trace-events
 F: net/vhost-user.c
 F: include/hw/virtio/
 F: tests/virtio-balloon-test.c
Signature · 1 line
2.1.4
#26 lore raw

[Qemu-devel] [PULL 01/26] qemu-options.hx: fix -chardev ringbuf typos

In reply to Michael Tokarev

From: Stefan Hajnoczi <[email protected]>

Clean up the documentation for -chardev ringbuf. There is a stray closing parenthesis and the comma is unnecessary.

---
 qemu-options.hx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qemu-options.hx +1 -1
index 01f01df..b1fbdb0 100644
@@ -2374,7 +2374,7 @@ console with the given dimensions.
 @item -chardev ringbuf ,id=@var{id} [,size=@var{size}]
 
 Create a ring buffer with fixed size @option{size}.
-@var{size} must be a power of two, and defaults to @code{64K}).
+@var{size} must be a power of two and defaults to @code{64K}.
 
 @item -chardev file ,id=@var{id} ,path=@var{path}
 
Signature · 1 line
2.1.4
#27 lore raw
In reply to Michael Tokarev
Quoted 17 lines · Michael Tokarev

Hi.

Here's another trivial tree pull request. Really trivial stuff all over, and many changes to MAINTAINERS file from Thomas Huth.

Please consider applying.

Thanks,

/mjt

The following changes since commit 48f592118ab42f83a1a7561c4bfd2b72a100f241:

bsd-user: fix FreeBSD build after d148d90e (2016-10-07 15:17:53 +0100)

are available in the git repository at:

Quoted 8 lines

git://git.corpit.ru/qemu.git tags/trivial-patches-fetch

for you to fetch changes up to 52cfcb464255b4da5115408e2a6ce3327bbcb9df:

net/filter-mirror: Fix mirror initial check typo (2016-10-08 11:25:29 +0300)

----------------------------------------------------------------
trivial patches for 2016-10-08

Applied, thanks.

-- PMM