Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-fetch'…
Browse files Browse the repository at this point in the history
… into staging

trivial patches for 2016-10-08

# gpg: Signature made Sat 08 Oct 2016 09:56:38 BST
# gpg:                using RSA key 0x701B4F6B1A693E59
# gpg: Good signature from "Michael Tokarev <[email protected]>"
# gpg:                 aka "Michael Tokarev <[email protected]>"
# gpg:                 aka "Michael Tokarev <[email protected]>"
# Primary key fingerprint: 6EE1 95D1 886E 8FFB 810D  4324 457C E0A0 8044 65C5
#      Subkey fingerprint: 7B73 BAD6 8BE7 A2C2 8931  4B22 701B 4F6B 1A69 3E59

* remotes/mjt/tags/trivial-patches-fetch: (26 commits)
  net/filter-mirror: Fix mirror initial check typo
  virtio: rename the bar index field name in VirtIOPCIProxy
  linux-user: include <poll.h> instead of <sys/poll.h>
  char: fix missing return in error path for chardev TLS init
  CODING_STYLE: Fix a typo ("have" vs. "has")
  bitmap: refine and move BITMAP_{FIRST/LAST}_WORD_MASK
  build-sys: fix find-in-path
  m68k: change default system clock for m5208evb
  exec: remove unused compacted argument
  usb: ehci: fix memory leak in ehci_process_itd
  qapi: make the json schema files more regular.
  maint: Add module_block.h to .gitignore
  MAINTAINERS: Some updates related to the SH4 machines
  MAINTAINERS: Add some more MIPS related files
  MAINTAINERS: Add usermode related config files
  MAINTAINERS: Add some more pattern to recognize all win32 related files
  MAINTAINERS: Add some more rocker related files
  MAINTAINERS: Add header files to CRIS section
  MAINTAINERS: Add some more files to the virtio section
  MAINTAINERS: Add some SPARC machine related files
  ...

# Conflicts:
#	MAINTAINERS
  • Loading branch information
pm215 committed Oct 10, 2016
2 parents 0cb0155 + 52cfcb4 commit a20fd90
Show file tree
Hide file tree
Showing 22 changed files with 70 additions and 51 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
/qemu-monitor-info.texi
/qemu-version.h
/qemu-version.h.tmp
/module_block.h
/vscclient
/fsdev/virtfs-proxy-helper
*.[1-9]
Expand Down
2 changes: 1 addition & 1 deletion CODING_STYLE
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
38 changes: 33 additions & 5 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -149,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

Expand All @@ -157,6 +165,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]>
Expand Down Expand Up @@ -319,6 +329,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
Expand Down Expand Up @@ -662,31 +675,38 @@ 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
--------------
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
-------------
Expand Down Expand Up @@ -926,6 +946,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
Expand Down Expand Up @@ -1013,6 +1035,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]>
Expand Down Expand Up @@ -1044,6 +1068,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
Expand Down Expand Up @@ -1181,8 +1206,9 @@ Human Monitor (HMP)
M: Dr. David Alan Gilbert <[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

Network device backends
M: Jason Wang <[email protected]>
Expand Down Expand Up @@ -1407,11 +1433,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)
-------------------------
Expand Down
8 changes: 3 additions & 5 deletions exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
}

Expand Down Expand Up @@ -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);
}
}

Expand Down
3 changes: 1 addition & 2 deletions hw/arm/nseries.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
2 changes: 1 addition & 1 deletion hw/bt/hci-csr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
4 changes: 2 additions & 2 deletions hw/display/virtio-vga.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
/*
Expand Down
2 changes: 1 addition & 1 deletion hw/m68k/mcf5208.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions hw/usb/hcd-ehci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
20 changes: 10 additions & 10 deletions hw/virtio/virtio-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1551,15 +1551,15 @@ 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,
VirtIOPCIRegion *region,
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,
Expand Down Expand Up @@ -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,
Expand All @@ -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) {
Expand All @@ -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);
}

Expand Down Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions hw/virtio/virtio-pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion include/hw/bt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 2 additions & 5 deletions include/qemu/bitmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion linux-user/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions net/filter-mirror.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down
3 changes: 1 addition & 2 deletions qapi-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@
'cpu-throttle-increment': 'int',
'tls-creds': 'str',
'tls-hostname': 'str'} }

##
# @query-migrate-parameters
#
Expand Down Expand Up @@ -4118,7 +4119,6 @@
#
# Since 1.6
##

{ 'struct': 'RxFilterInfo',
'data': {
'name': 'str',
Expand Down Expand Up @@ -4338,7 +4338,6 @@
#
# Since: 2.1
##

{ 'struct': 'Memdev',
'data': {
'size': 'size',
Expand Down
Loading

0 comments on commit a20fd90

Please sign in to comment.