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 2017-10-16

# gpg: Signature made Mon 16 Oct 2017 21:32:05 BST
# gpg:                using RSA key 0x701B4F6B1A693E59
# gpg: Good signature from "Michael Tokarev <mjt@tls.msk.ru>"
# gpg:                 aka "Michael Tokarev <mjt@corpit.ru>"
# gpg:                 aka "Michael Tokarev <mjt@debian.org>"
# 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:
  Add myself as maintainer for TPM code
  filter-mirror: segfault when specifying non existent device
  MAINTAINERS: Track default-configs/pci.mak
  MAINTAINERS: Fix Sun4v file
  MAINTAINERS: Clean up SCSI device section
  include/hw/or-irq.h: Drop unused in_irqs field
  io: Add missing GCC_FMT_ATTR (fix -Werror=suggest-attribute=format)
  os-posix: Drop misleading comment
  linux-user: Add some random ioctls
  futex: add missing header guards
  ui/gtk: Fix deprecation of vte_terminal_copy_clipboard
  gitignore: ignore check-qlit test
  linux-user: remove duplicate break in syscall
  qemu-doc.texi: remove trailing whitespace

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
  • Loading branch information
pm215 committed Oct 17, 2017
2 parents dabc50e + 6b4f250 commit a9038e5
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 15 deletions.
13 changes: 5 additions & 8 deletions MAINTAINERS
Expand Up @@ -778,7 +778,7 @@ F: pc-bios/openbios-sparc64
Sun4v
M: Artyom Tarasenko <atar4qemu@gmail.com>
S: Maintained
F: hw/sparc64/sun4v.c
F: hw/sparc64/niagara.c
F: hw/timer/sun4v-rtc.c
F: include/hw/timer/sun4v-rtc.h

Expand Down Expand Up @@ -934,6 +934,7 @@ F: hw/pci/*
F: hw/pci-bridge/*
F: docs/pci*
F: docs/specs/*pci*
F: default-configs/pci.mak

ACPI/SMBIOS
M: Michael S. Tsirkin <mst@redhat.com>
Expand Down Expand Up @@ -980,16 +981,10 @@ SCSI
M: Paolo Bonzini <pbonzini@redhat.com>
S: Supported
F: include/hw/scsi/*
F: include/scsi/*
F: hw/scsi/*
F: util/scsi*
F: tests/virtio-scsi-test.c
T: git git://github.com/bonzini/qemu.git scsi-next

LSI53C895A
S: Orphan
F: hw/scsi/lsi53c895a.c

SSI
M: Peter Crosthwaite <crosthwaite.peter@gmail.com>
M: Alistair Francis <alistair.francis@xilinx.com>
Expand Down Expand Up @@ -1540,12 +1535,14 @@ F: docs/devel/tracing.txt
T: git git://github.com/stefanha/qemu.git tracing

TPM
S: Orphan
M: Stefan Berger <stefanb@linux.vnet.ibm.com>
S: Maintained
F: tpm.c
F: hw/tpm/*
F: include/hw/acpi/tpm.h
F: include/sysemu/tpm*
F: qapi/tpm.json
F: backends/tpm.c

Checkpatch
S: Odd Fixes
Expand Down
1 change: 0 additions & 1 deletion include/hw/or-irq.h
Expand Up @@ -38,7 +38,6 @@ struct OrIRQState {
DeviceState parent_obj;

qemu_irq out_irq;
qemu_irq *in_irqs;
bool levels[MAX_OR_LINES];
uint16_t num_lines;
};
5 changes: 5 additions & 0 deletions include/qemu/futex.h
Expand Up @@ -11,6 +11,9 @@
*
*/

#ifndef QEMU_FUTEX_H
#define QEMU_FUTEX_H

#include <sys/syscall.h>
#include <linux/futex.h>

Expand All @@ -34,3 +37,5 @@ static inline void qemu_futex_wait(void *f, unsigned val)
}
}
}

#endif /* QEMU_FUTEX_H */
7 changes: 4 additions & 3 deletions io/channel-websock.c
Expand Up @@ -152,9 +152,10 @@ enum {
QIO_CHANNEL_WEBSOCK_OPCODE_PONG = 0xA
};

static void qio_channel_websock_handshake_send_res(QIOChannelWebsock *ioc,
const char *resmsg,
...)
static void GCC_FMT_ATTR(2, 3)
qio_channel_websock_handshake_send_res(QIOChannelWebsock *ioc,
const char *resmsg,
...)
{
va_list vargs;
char *response;
Expand Down
5 changes: 5 additions & 0 deletions linux-user/ioctls.h
Expand Up @@ -173,6 +173,11 @@
IOCTL(SIOCGSTAMP, IOC_R, MK_PTR(MK_STRUCT(STRUCT_timeval)))
IOCTL(SIOCGSTAMPNS, IOC_R, MK_PTR(MK_STRUCT(STRUCT_timespec)))

IOCTL(RNDGETENTCNT, IOC_R, MK_PTR(TYPE_INT))
IOCTL(RNDADDTOENTCNT, IOC_W, MK_PTR(TYPE_INT))
IOCTL(RNDZAPENTCNT, 0, TYPE_NULL)
IOCTL(RNDCLEARPOOL, 0, TYPE_NULL)

IOCTL(CDROMPAUSE, 0, TYPE_NULL)
IOCTL(CDROMSTART, 0, TYPE_NULL)
IOCTL(CDROMSTOP, 0, TYPE_NULL)
Expand Down
2 changes: 1 addition & 1 deletion linux-user/syscall.c
Expand Up @@ -59,6 +59,7 @@ int __clone2(int (*fn)(void *), void *child_stack_base,
#include <linux/icmp.h>
#include <linux/icmpv6.h>
#include <linux/errqueue.h>
#include <linux/random.h>
#include "qemu-common.h"
#ifdef CONFIG_TIMERFD
#include <sys/timerfd.h>
Expand Down Expand Up @@ -3131,7 +3132,6 @@ static abi_long do_setsockopt(int sockfd, int level, int optname,
case TARGET_SO_RCVLOWAT:
optname = SO_RCVLOWAT;
break;
break;
default:
goto unimplemented;
}
Expand Down
7 changes: 7 additions & 0 deletions linux-user/syscall_defs.h
Expand Up @@ -1060,6 +1060,13 @@ struct target_pollfd {

#define TARGET_SIOCGIWNAME 0x8B01 /* get name == wireless protocol */

/* From <linux/random.h> */

#define TARGET_RNDGETENTCNT TARGET_IOR('R', 0x00, int)
#define TARGET_RNDADDTOENTCNT TARGET_IOW('R', 0x01, int)
#define TARGET_RNDZAPENTCNT TARGET_IO('R', 0x04)
#define TARGET_RNDCLEARPOOL TARGET_IO('R', 0x06)

/* From <linux/fs.h> */

#define TARGET_BLKROSET TARGET_IO(0x12,93) /* set device read-only (0 = read-write) */
Expand Down
6 changes: 6 additions & 0 deletions net/filter-mirror.c
Expand Up @@ -213,6 +213,12 @@ static void filter_mirror_setup(NetFilterState *nf, Error **errp)
MirrorState *s = FILTER_MIRROR(nf);
Chardev *chr;

if (s->outdev == NULL) {
error_set(errp, ERROR_CLASS_DEVICE_NOT_FOUND, "filter-mirror parameter"\
" 'outdev' cannot be empty");
return;
}

chr = qemu_chr_find(s->outdev);
if (chr == NULL) {
error_set(errp, ERROR_CLASS_DEVICE_NOT_FOUND,
Expand Down
1 change: 0 additions & 1 deletion os-posix.c
Expand Up @@ -25,7 +25,6 @@

#include "qemu/osdep.h"
#include <sys/wait.h>
/*needed for MAP_POPULATE before including qemu-options.h */
#include <pwd.h>
#include <grp.h>
#include <libgen.h>
Expand Down
2 changes: 1 addition & 1 deletion qemu-doc.texi
Expand Up @@ -105,7 +105,7 @@ QEMU full system emulation has the following features:
QEMU uses a full software MMU for maximum portability.

@item
QEMU can optionally use an in-kernel accelerator, like kvm. The accelerators
QEMU can optionally use an in-kernel accelerator, like kvm. The accelerators
execute most of the guest code natively, while
continuing to emulate the rest of the machine.

Expand Down
1 change: 1 addition & 0 deletions tests/.gitignore
Expand Up @@ -6,6 +6,7 @@ check-qdict
check-qnum
check-qjson
check-qlist
check-qlit
check-qnull
check-qstring
check-qom-interface
Expand Down

0 comments on commit a9038e5

Please sign in to comment.