Trivial patches for 2016-01-11
Subsystems (4)
This is the first trivial-patches pull request for 2016 year, and the first one for qemu 2.6 series. With some old stuff in there, collecting missing patches since Nov-2015.
There's nothing exciting in there, except of a possible fun patch enabling sigaltstack syscall.
Please consider applying/pulling.
Thanks,
/mjt
The following changes since commit 6bb9ead762bf749af11ea225fc2a74db1b93c105:
Merge remote-tracking branch 'remotes/kraxel/tags/pull-ui-20160108-1' into staging (2016-01-08 12:50:19 +0000)
are available in the git repository at:
git://git.corpit.ru/qemu.git tags/pull-trivial-patches-2016-01-11
for you to fetch changes up to fe02fc5209d497d011b2b4b09395e2503d9dedc6:
hw/s390x: Remove superfluous return statements (2016-01-11 11:39:28 +0300)
----------------------------------------------------------------
trivial patches for 2016-01-11
----------------------------------------------------------------
Cao jin (5):
xen/Makefile.objs: simplify
hw/misc/edu: Convert to realize()
gt64120: convert to realize()
SH PCI Host: convert to realize()
PCI Bonito: QOMify and cleanup
Eric Blake (1):
crypto: Fix typo in example
Johan Ouwerkerk (1):
Add missing syscall nrs. according to more recent Linux kernels
Marc-André Lureau (1):
configure: fix trace backend check
Michael Tokarev (2):
unicore32: convert get_sp_from_cpustate from macro to inline
linux-user: enable sigaltstack for all architectures
Paolo Bonzini (1):
net: convert qemu_log to error_report, fix message
Peter Maydell (2):
scripts/checkpatch.pl: Don't allow special cases of unspaced operators osdep.h: Include glib-compat.h in osdep.h rather than qemu-common.h
Thomas Huth (5):
MAINTAINERS: Add the correct device_tree.h file hw/ide: Remove superfluous return statements hw/acpi: Remove superfluous return statement hw/core/qdev: Remove superfluous return statement hw/s390x: Remove superfluous return statements
Zhu Lingshan (1):
iscsi: fix readcapacity error message
MAINTAINERS | 3 ++- block/iscsi.c | 2 +- configure | 2 +- hw/acpi/memory_hotplug.c | 1 - hw/core/qdev.c | 1 - hw/ide/atapi.c | 1 - hw/ide/macio.c | 2 -- hw/mips/gt64xxx_pci.c | 6 ++---- hw/misc/edu.c | 6 ++---- hw/pci-host/bonito.c | 23 ++++++++++++----------- hw/s390x/css.c | 1 - hw/s390x/s390-pci-bus.c | 4 ---- hw/sh4/sh_pci.c | 5 ++--- hw/xen/Makefile.objs | 3 +-- include/crypto/tlssession.h | 2 +- include/qemu-common.h | 1 - include/qemu/osdep.h | 2 ++ linux-user/aarch64/syscall_nr.h | 13 +++++++++++++ linux-user/arm/syscall_nr.h | 12 ++++++++++++ linux-user/mips/syscall_nr.h | 12 ++++++++++++ linux-user/syscall.c | 6 ------ linux-user/unicore32/target_signal.h | 6 +++++- net/dump.c | 2 +- scripts/checkpatch.pl | 13 ------------- 24 files changed, 69 insertions(+), 60 deletions(-)
[Qemu-devel] [PULL 07/19] xen/Makefile.objs: simplify
From: Cao jin <[email protected]>
merge last two lines, keep alphabetic order.
--- hw/xen/Makefile.objs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
hw/xen/Makefile.objs +1 -2
@@ -2,5 +2,4 @@ common-obj-$(CONFIG_XEN_BACKEND) += xen_backend.o xen_devconfig.o obj-$(CONFIG_XEN_PCI_PASSTHROUGH) += xen-host-pci-device.o -obj-$(CONFIG_XEN_PCI_PASSTHROUGH) += xen_pt.o xen_pt_config_init.o xen_pt_msi.o -obj-$(CONFIG_XEN_PCI_PASSTHROUGH) += xen_pt.o xen_pt_config_init.o xen_pt_msi.o xen_pt_graphics.o +obj-$(CONFIG_XEN_PCI_PASSTHROUGH) += xen_pt.o xen_pt_config_init.o xen_pt_graphics.o xen_pt_msi.o
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 01/19] unicore32: convert get_sp_from_cpustate from macro to inline
In reply to Michael TokarevAll other architectures define get_sp_from_cpustate as an inline function, only unicore32 uses a #define. With this, some usages are impossible, for example, enabling sigaltstack in linux-user/syscall.c results in
linux-user/syscall.c: In function ‘do_syscall’:linux-user/syscall.c:8299:39: error: dereferencing ‘void *’ pointer [-Werror]
get_sp_from_cpustate(arg1, arg2, get_sp_from_cpustate((CPUArchState *)cpu_env));
^linux-user/syscall.c:8299:39: error: request for member ‘regs’ in something not a structure or union
--- linux-user/unicore32/target_signal.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
linux-user/unicore32/target_signal.h +5 -1
@@ -21,6 +21,10 @@ typedef struct target_sigaltstack {#define TARGET_SS_ONSTACK 1#define TARGET_SS_DISABLE 2 -#define get_sp_from_cpustate (cpustate) (cpustate->regs[29]) +static inline abi_ulong get_sp_from_cpustate (CPUUniCore32State *state) +{ +return state->regs[29 ]; +} +#endif /* TARGET_SIGNAL_H */
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 08/19] configure: fix trace backend check
In reply to Michael TokarevFrom: Marc-André Lureau <[email protected]>
Found thanks to shellcheck!
--- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
@@ -4817,7 +4817,7 @@ echo "libcap-ng support $cap_ng" echo "vhost-net support $vhost_net" echo "vhost-scsi support $vhost_scsi" echo "Trace backends $trace_backends" -if test "$trace_backend" = "simple"; then +if have_backend "simple"; then echo "Trace output file $trace_file-<pid>" fi if test "$spice" = "yes"; then
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 05/19] MAINTAINERS: Add the correct device_tree.h file
In reply to Michael TokarevFrom: Thomas Huth <[email protected]>
device_tree.h is not in the main directory, but under include/sysemu/ nowadays.
--- MAINTAINERS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
MAINTAINERS +2 -1
@@ -1036,7 +1036,8 @@ Device Tree M: Peter Crosthwaite <[email protected]> M: Alexander Graf <[email protected]> S: Maintained -F: device_tree.[ch] +F: device_tree.c +F: include/sysemu/device_tree.h Error reporting M: Markus Armbruster <[email protected]>
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 06/19] crypto: Fix typo in example
In reply to Michael TokarevFrom: Eric Blake <[email protected]>
The example code wouldn't even compile, since it did not use a consistent spelling for the Error ** parameter.
--- include/crypto/tlssession.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/crypto/tlssession.h +1 -1
@@ -56,7 +56,7 @@* * static int mysock_run_tls(int sockfd, * QCryptoTLSCreds *creds, -* Error *erp) +* Error *errp) * { * QCryptoTLSSession *sess; *
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 14/19] scripts/checkpatch.pl: Don't allow special cases of unspaced operators
In reply to Michael TokarevFrom: Peter Maydell <[email protected]>
The checkpatch.pl script has a special case to permit the following operators to have no spaces around them:
<< >> & ^ | + - * / %
QEMU style prefers all operators to consistently have spacing around them, so remove this special case handling. This avoids reviewers having to manually note it during code review.
--- scripts/checkpatch.pl | 13 ------------- 1 file changed, 13 deletions(-)
scripts/checkpatch.pl +0 -13
@@ -1890,19 +1890,6 @@ sub process { ERROR("space prohibited after that '$op' $at\n" . $hereptr); } - - # << and >> may either have or not have spaces both sides - } elsif ($op eq '<<' or $op eq '>>' or - $op eq '&' or $op eq '^' or $op eq '|' or - $op eq '+' or $op eq '-' or - $op eq '*' or $op eq '/' or - $op eq '%') - { - if ($ctx =~ /Wx[^WCE]|[^WCE]xW/) { - ERROR("need consistent spacing around '$op' $at\n" . - $hereptr); - } - # A colon needs no spaces before when it is # terminating a case value or a label. } elsif ($opv eq ':C' || $opv eq ':L') {
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 04/19] iscsi: fix readcapacity error message
In reply to Michael TokarevFrom: Zhu Lingshan <[email protected]>
fix:The error message for readcapacity 16 incorrectly mentioned a readcapacity 10 failure, fixed the error message.
--- block/iscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
block/iscsi.c +1 -1
@@ -1270,7 +1270,7 @@ static void iscsi_readcapacity_sync(IscsiLun *iscsilun, Error **errp) && retries-- > 0);if (task ==NULL || task->status !=SCSI_STATUS_GOOD ) { -error_setg (errp,"iSCSI: failed to send readcapacity10 command." ); +error_setg (errp,"iSCSI: failed to send readcapacity10/16 command" ); }else if (!iscsilun->block_size || iscsilun->block_size %BDRV_SECTOR_SIZE ) { error_setg(errp, "iSCSI: the target returned an invalid "
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 15/19] osdep.h: Include glib-compat.h in osdep.h rather than qemu-common.h
In reply to Michael TokarevFrom: Peter Maydell <[email protected]>
Our use of glib is now pervasive across QEMU. Move the include of glib-compat.h from qemu-common.h to osdep.h so that it is more widely accessible and doesn't get forgotten by accident. (Failure to include it will result in build failure on old versions of glib which is likely to be unnoticed by most developers.)
--- include/qemu-common.h | 1 - include/qemu/osdep.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-)
include/qemu-common.h +0 -1
@@ -22,7 +22,6 @@#define TFR (expr) do { if ((expr) != -1) break; } while (errno == EINTR) -#include "glib-compat.h" #include "qemu/option.h" #include "qemu/host-utils.h"
include/qemu/osdep.h +2 -0
@@ -69,6 +69,8 @@#include "sysemu/os-posix.h" #endif +#include "glib-compat.h" +#include "qapi/error.h" #if defined(CONFIG_SOLARIS ) &&CONFIG_SOLARIS_VERSION <10
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 13/19] PCI Bonito: QOMify and cleanup
In reply to Michael TokarevFrom: Cao jin <[email protected]>
Also clear the code
--- hw/pci-host/bonito.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-)
hw/pci-host/bonito.c +12 -11
@@ -180,8 +180,6 @@#define PCI_ADDR (busno,devno,funno,regno) \ ((((busno)<<16)&0xff0000) + (((devno)<<11)&0xf800) + (((funno)<<8)&0x700) + (regno)) -#define TYPE_BONITO_PCI_HOST_BRIDGE "Bonito-pcihost" -typedef struct BonitoState BonitoState ; typedef struct PCIBonitoState
@@ -215,17 +213,20 @@ typedef struct PCIBonitoState } PCIBonitoState; -#define BONITO_PCI_HOST_BRIDGE (obj) \ - OBJECT_CHECK(BonitoState, (obj), TYPE_BONITO_PCI_HOST_BRIDGE) -struct BonitoState {PCIHostState parent_obj; -qemu_irq *pic; -PCIBonitoState *pci_dev; }; +#define TYPE_BONITO_PCI_HOST_BRIDGE "Bonito-pcihost" +#define BONITO_PCI_HOST_BRIDGE (obj) \ + OBJECT_CHECK(BonitoState, (obj), TYPE_BONITO_PCI_HOST_BRIDGE) + +#define TYPE_PCI_BONITO "Bonito" +#define PCI_BONITO (obj) \ + OBJECT_CHECK(PCIBonitoState, (obj), TYPE_PCI_BONITO) +static void bonito_writel (void *opaque,hwaddr addr,uint64_t val,unsigned size) {
@@ -723,7 +724,7 @@ static int bonito_pcihost_initfn(SysBusDevice *dev)static void bonito_realize (PCIDevice *dev,Error **errp) { -PCIBonitoState *s =DO_UPCAST (PCIBonitoState, dev, dev); +PCIBonitoState *s =PCI_BONITO (dev);SysBusDevice *sysbus =SYS_BUS_DEVICE (s->pcihost);PCIHostState *phb =PCI_HOST_BRIDGE (s->pcihost);
@@ -799,8 +800,8 @@ PCIBus *bonito_init(qemu_irq *pic)qdev_init_nofail (dev);/* set the pcihost pointer before bonito_initfn is called */ - d =pci_create (phb->bus,PCI_DEVFN (0 ,0 ),"Bonito" ); - s =DO_UPCAST (PCIBonitoState, dev, d); + d =pci_create (phb->bus,PCI_DEVFN (0 ,0 ),TYPE_PCI_BONITO ); + s =PCI_BONITO (d); s->pcihost = pcihost; pcihost->pci_dev = s;qdev_init_nofail (DEVICE (d));
@@ -828,7 +829,7 @@ static void bonito_class_init(ObjectClass *klass, void *data) }static const TypeInfo bonito_info = { - .name ="Bonito" , + .name =TYPE_PCI_BONITO , .parent =TYPE_PCI_DEVICE , .instance_size =sizeof (PCIBonitoState), .class_init = bonito_class_init,
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 09/19] hw/misc/edu: Convert to realize()
In reply to Michael TokarevFrom: Cao jin <[email protected]>
for educational PCI device
--- hw/misc/edu.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
hw/misc/edu.c +2 -4
@@ -327,7 +327,7 @@ static void *edu_fact_thread(void *opaque)return NULL ; } -static int pci_edu_init (PCIDevice *pdev) +static void pci_edu_realize (PCIDevice *pdev,Error **errp) {EduState *edu =DO_UPCAST (EduState, pdev, pdev);uint8_t *pci_conf = pdev->config;
@@ -344,8 +344,6 @@ static int pci_edu_init(PCIDevice *pdev)memory_region_init_io (&edu->mmio,OBJECT (edu), &edu_mmio_ops, edu,"edu-mmio" ,1 <<20 );pci_register_bar (pdev,0 ,PCI_BASE_ADDRESS_SPACE_MEMORY , &edu->mmio); - -return 0 ; }static void pci_edu_uninit (PCIDevice *pdev)
@@ -385,7 +383,7 @@ static void edu_class_init(ObjectClass *class, void *data) {PCIDeviceClass *k =PCI_DEVICE_CLASS (class); - k->init = pci_edu_init; + k->realize = pci_edu_realize; k->exit = pci_edu_uninit; k->vendor_id =PCI_VENDOR_ID_QEMU ; k->device_id =0x11e8 ;
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 16/19] hw/ide: Remove superfluous return statements
In reply to Michael TokarevFrom: Thomas Huth <[email protected]>
The "return;" statements at the end of functions do not make much sense, so let's remove them.
--- hw/ide/atapi.c | 1 - hw/ide/macio.c | 2 -- 2 files changed, 3 deletions(-)
hw/ide/atapi.c +0 -1
@@ -824,7 +824,6 @@ static void cmd_inquiry(IDEState *s, uint8_t *buf) out: buf[size_idx] = idx - preamble_len;ide_atapi_cmd_reply (s, idx, max_len); -return ; }static void cmd_get_configuration (IDEState *s,uint8_t *buf)
hw/ide/macio.c +0 -2
@@ -292,8 +292,6 @@ done:block_acct_done (blk_get_stats (s->blk), &s->acct); } io->dma_end (opaque); - -return ; }static void pmac_ide_transfer_cb (void *opaque,int ret)
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 18/19] hw/core/qdev: Remove superfluous return statement
In reply to Michael TokarevFrom: Thomas Huth <[email protected]>
The "return;" statement at the end of device_set_realized() does not make much sense, so let's remove it.
--- hw/core/qdev.c | 1 - 1 file changed, 1 deletion(-)
hw/core/qdev.c +0 -1
@@ -1134,7 +1134,6 @@ post_realize_fail: fail:error_propagate (errp, local_err); -return ; }static bool device_get_hotpluggable (Object *obj,Error **errp)
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 19/19] hw/s390x: Remove superfluous return statements
In reply to Michael TokarevFrom: Thomas Huth <[email protected]>
The "return;" statements at the end of functions do not make much sense, so let's remove them.
--- hw/s390x/css.c | 1 - hw/s390x/s390-pci-bus.c | 4 ---- 2 files changed, 5 deletions(-)
hw/s390x/css.c +0 -1
@@ -1430,7 +1430,6 @@ void subch_device_save(SubchDev *s, QEMUFile *f) }qemu_put_byte (f, s->ccw_fmt_1);qemu_put_byte (f, s->ccw_no_data_cnt); -return ; }int subch_device_load (SubchDev *s,QEMUFile *f)
hw/s390x/s390-pci-bus.c +0 -4
@@ -123,7 +123,6 @@ void s390_pci_sclp_configure(int configure, SCCB *sccb) } psccb->header.response_code =cpu_to_be16 (rc); -return ; }static uint32_t s390_pci_get_pfid (PCIDevice *pdev)
@@ -439,8 +438,6 @@ static void s390_msi_ctrl_write(void *opaque, hwaddr addr, uint64_t data, io_int_word = (pbdev->isc <<27 ) |IO_INT_WORD_AI ;s390_io_interrupt (0 ,0 ,0 , io_int_word); } - -return ; }static uint64_t s390_msi_ctrl_read (void *opaque,hwaddr addr,unsigned size)
@@ -561,7 +558,6 @@ static void s390_pcihost_hot_plug(HotplugHandler *hotplug_dev,s390_pci_generate_plug_event (HP_EVENT_TO_CONFIGURED , pbdev->fh, pbdev->fid); } -return ; } static void s390_pcihost_hot_unplug(HotplugHandler *hotplug_dev,
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 17/19] hw/acpi: Remove superfluous return statement
In reply to Michael TokarevFrom: Thomas Huth <[email protected]>
The "return;" statement at the end of acpi_memory_plug_cb() does not make much sense, so let's remove it.
--- hw/acpi/memory_hotplug.c | 1 - 1 file changed, 1 deletion(-)
hw/acpi/memory_hotplug.c +0 -1
@@ -250,7 +250,6 @@ void acpi_memory_plug_cb(ACPIREGS *ar, qemu_irq irq, MemHotplugState *mem_st,/* do ACPI magic */ acpi_send_gpe_event (ar, irq,ACPI_MEMORY_HOTPLUG_STATUS ); } -return ; } void acpi_memory_unplug_request_cb(ACPIREGS *ar, qemu_irq irq,
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 12/19] SH PCI Host: convert to realize()
In reply to Michael TokarevFrom: Cao jin <[email protected]>
--- hw/sh4/sh_pci.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
hw/sh4/sh_pci.c +2 -3
@@ -151,12 +151,11 @@ static int sh_pci_device_init(SysBusDevice *dev)return 0 ; } -static int sh_pci_host_init (PCIDevice *d) +static void sh_pci_host_realize (PCIDevice *d,Error **errp) {pci_set_word (d->config +PCI_COMMAND ,PCI_COMMAND_WAIT );pci_set_word (d->config +PCI_STATUS ,PCI_STATUS_CAP_LIST |PCI_STATUS_FAST_BACK |PCI_STATUS_DEVSEL_MEDIUM ); -return 0 ; }static void sh_pci_host_class_init (ObjectClass *klass,void *data)
@@ -164,7 +163,7 @@ static void sh_pci_host_class_init(ObjectClass *klass, void *data)PCIDeviceClass *k =PCI_DEVICE_CLASS (klass);DeviceClass *dc =DEVICE_CLASS (klass); - k->init = sh_pci_host_init; + k->realize = sh_pci_host_realize; k->vendor_id =PCI_VENDOR_ID_HITACHI ; k->device_id =PCI_DEVICE_ID_HITACHI_SH7751R ;/*
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 03/19] net: convert qemu_log to error_report, fix message
In reply to Michael TokarevFrom: Paolo Bonzini <[email protected]>
Ensure that the error is printed with the proper timestamp.
--- net/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/dump.c +1 -1
@@ -84,7 +84,7 @@ static ssize_t dump_receive_iov(DumpState *s, const struct iovec *iov, int cnt) cnt =iov_copy (&dumpiov[1 ], cnt, iov, cnt,0 , caplen);if (writev (s->fd, dumpiov, cnt +1 ) !=sizeof (hdr) + caplen) { -qemu_log ("-net dump write error - stop dump\n" ); +error_report ("network dump write error - stopping dump" );close (s->fd); s->fd =-1 ; }
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 02/19] linux-user: enable sigaltstack for all architectures
In reply to Michael TokarevThere is no reason to limit sigaltstack syscall to just a few architectures and pretend it is not implemented for others.
If some architecture is not ready for this, that architecture should be fixed instead.
This fixes LP#1516408.
--- linux-user/syscall.c | 6 ------ 1 file changed, 6 deletions(-)
linux-user/syscall.c +0 -6
@@ -8292,14 +8292,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,break ; }case TARGET_NR_sigaltstack: -#if defined(TARGET_I386 ) || defined(TARGET_ARM ) || defined(TARGET_MIPS ) || \ - defined(TARGET_SPARC ) || defined(TARGET_PPC ) || defined(TARGET_ALPHA ) || \ - defined(TARGET_M68K ) || defined(TARGET_S390X ) || defined(TARGET_OPENRISC ) ret =do_sigaltstack (arg1, arg2,get_sp_from_cpustate ((CPUArchState *)cpu_env));break ; -#else - goto unimplemented; -#endif #ifdef CONFIG_SENDFILE case TARGET_NR_sendfile:
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 10/19] Add missing syscall nrs. according to more recent Linux kernels
In reply to Michael TokarevFrom: Johan Ouwerkerk <[email protected]>
This change covers arm, aarch64, mips. Others to follow?
The change was prompted by QEMU warning about a syscall 384 (get_random()) with Debian armhf binaries (ARMv7).
--- linux-user/aarch64/syscall_nr.h | 13 +++++++++++++ linux-user/arm/syscall_nr.h | 12 ++++++++++++ linux-user/mips/syscall_nr.h | 12 ++++++++++++ 3 files changed, 37 insertions(+)
linux-user/aarch64/syscall_nr.h +13 -0
@@ -262,6 +262,19 @@#define TARGET_NR_process_vm_writev 271#define TARGET_NR_kcmp 272#define TARGET_NR_finit_module 273 + +#define TARGET_NR_sched_setattr 274 +#define TARGET_NR_sched_getattr 275 +#define TARGET_NR_renameat2 276 +#define TARGET_NR_seccomp 277 +#define TARGET_NR_getrandom 278 +#define TARGET_NR_memfd_create 279 +#define TARGET_NR_bpf 280 +#define TARGET_NR_execveat 281 +#define TARGET_NR_userfaultfd 282 +#define TARGET_NR_membarrier 283 +#define TARGET_NR_mlock2 284 +#define TARGET_NR_open 1024#define TARGET_NR_link 1025#define TARGET_NR_unlink 1026
linux-user/arm/syscall_nr.h +12 -0
@@ -384,3 +384,15 @@#define TARGET_NR_process_vm_writev (377)#define TARGET_NR_kcmp (378)#define TARGET_NR_finit_module (379) + +#define TARGET_NR_sched_setattr (380) +#define TARGET_NR_sched_getattr (381) +#define TARGET_NR_renameat2 (382) +#define TARGET_NR_seccomp (383) +#define TARGET_NR_getrandom (384) +#define TARGET_NR_memfd_create (385) +#define TARGET_NR_bpf (386) +#define TARGET_NR_execveat (387) +#define TARGET_NR_userfaultfd (388) +#define TARGET_NR_membarrier (389) +#define TARGET_NR_mlock2 (390)
linux-user/mips/syscall_nr.h +12 -0
@@ -351,3 +351,15 @@#define TARGET_NR_process_vm_writev (TARGET_NR_Linux + 346)#define TARGET_NR_kcmp (TARGET_NR_Linux + 347)#define TARGET_NR_finit_module (TARGET_NR_Linux + 348) + +#define TARGET_NR_sched_setattr (TARGET_NR_Linux + 349) +#define TARGET_NR_sched_getattr (TARGET_NR_Linux + 350) +#define TARGET_NR_renameat2 (TARGET_NR_Linux + 351) +#define TARGET_NR_seccomp (TARGET_NR_Linux + 352) +#define TARGET_NR_getrandom (TARGET_NR_Linux + 353) +#define TARGET_NR_memfd_create (TARGET_NR_Linux + 354) +#define TARGET_NR_bpf (TARGET_NR_Linux + 355) +#define TARGET_NR_execveat (TARGET_NR_Linux + 356) +#define TARGET_NR_userfaultfd (TARGET_NR_Linux + 357) +#define TARGET_NR_membarrier (TARGET_NR_Linux + 358) +#define TARGET_NR_mlock2 (TARGET_NR_Linux + 359)
Signature · 1 line
2.1.4
[Qemu-devel] [PULL 11/19] gt64120: convert to realize()
In reply to Michael TokarevFrom: Cao jin <[email protected]>
--- hw/mips/gt64xxx_pci.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
hw/mips/gt64xxx_pci.c +2 -4
@@ -1193,7 +1193,7 @@ static int gt64120_init(SysBusDevice *dev)return 0 ; } -static int gt64120_pci_init (PCIDevice *d) +static void gt64120_pci_realize (PCIDevice *d,Error **errp) {/* FIXME: Malta specific hw assumptions ahead */ pci_set_word (d->config +PCI_COMMAND ,0 );
@@ -1207,8 +1207,6 @@ static int gt64120_pci_init(PCIDevice *d)pci_set_long (d->config +PCI_BASE_ADDRESS_4 ,0x14000000 );pci_set_long (d->config +PCI_BASE_ADDRESS_5 ,0x14000001 );pci_set_byte (d->config +0x3d ,0x01 ); - -return 0 ; }static void gt64120_pci_class_init (ObjectClass *klass,void *data)
@@ -1216,7 +1214,7 @@ static void gt64120_pci_class_init(ObjectClass *klass, void *data)PCIDeviceClass *k =PCI_DEVICE_CLASS (klass);DeviceClass *dc =DEVICE_CLASS (klass); - k->init = gt64120_pci_init; + k->realize = gt64120_pci_realize; k->vendor_id =PCI_VENDOR_ID_MARVELL ; k->device_id =PCI_DEVICE_ID_MARVELL_GT6412X ; k->revision =0x10 ;
Signature · 1 line
2.1.4
Peter Maydell
AppliedQuoted 19 lines · Michael Tokarev
This is the first trivial-patches pull request for 2016 year, and the first one for qemu 2.6 series. With some old stuff in there, collecting missing patches since Nov-2015.
There's nothing exciting in there, except of a possible fun patch enabling sigaltstack syscall.
Please consider applying/pulling.
Thanks,
/mjt
The following changes since commit
6bb9ead762bf749af11ea225fc2a74db1b93c105:Merge remote-tracking branch 'remotes/kraxel/tags/pull-ui-20160108-1' into staging (2016-01-08 12:50:19 +0000)
are available in the git repository at:
Quoted 9 lines
git://git.corpit.ru/qemu.gittags/pull-trivial-patches-2016-01-11for you to fetch changes up to
fe02fc5209d497d011b2b4b09395e2503d9dedc6:hw/s390x: Remove superfluous return statements (2016-01-11 11:39:28 +0300)
----------------------------------------------------------------
trivial patches for 2016-01-11
Applied, thanks.
-- PMM