Misc patches for QEMU 3.1.0-rc3
The following changes since commit 4822f1ee9efa8df56e29db0a68323b484bdb0335:
Merge remote-tracking branch 'remotes/kraxel/tags/fixes-31-20181127-pull-request' into staging (2018-11-27 11:21:38 +0000)
are available in the git repository at:
git://github.com/bonzini/qemu.git tags/for-upstream
for you to fetch changes up to 86100290cb6600b3d65e0794b45c1b82ead99411:
hostmem: no need to check for host_memory_backend_mr_inited() in alloc() (2018-11-28 11:51:24 +0100)
----------------------------------------------------------------
* lsi HBA reselection fix (George)
* Small cleanups (Li Qiang)
* bugfixes for vhost-user-bridge and hostmem (Marc-André)
* single-thread TCG fix (me)
* VMX migration blocker (me)
* target/i386 fix for LOCK (Richard)
* MAINTAINERS update (Philippe, Thomas)
----------------------------------------------------------------
George Kennedy (1):
lsi: Reselection needed to remove pending commands from queue
Li Qiang (2):
vl: Improve error message when we can't load fw_cfg from file vl.c: remove outdated comment
Marc-André Lureau (4):
vmstate: constify VMStateField
vhost-user-bridge: fix recvmsg iovlen
hostmem-memfd: honour share=on/off property
hostmem: no need to check for host_memory_backend_mr_inited() in alloc()
Paolo Bonzini (4):
target/i386: kvm: add VMX migration blocker
cpus: run work items for all vCPUs if single-threaded
migration: savevm: consult migration blockers
checkpatch: g_test_message does not need a trailing newline
Philippe Mathieu-Daudé (1):
MAINTAINERS: Add an entry for the Firmware Configuration (fw_cfg) device
Richard Henderson (1):
target/i386: Generate #UD when applying LOCK to a register destination
Thomas Huth (1):
MAINTAINERS: Add some missing entries related to accelerators
MAINTAINERS | 18 +++++++ backends/hostmem-file.c | 24 ++++----- backends/hostmem-memfd.c | 8 ++- cpus.c | 12 +++-- hw/display/virtio-gpu.c | 4 +- hw/intc/s390_flic_kvm.c | 4 +- hw/nvram/eeprom93xx.c | 6 +-- hw/nvram/fw_cfg.c | 6 +-- hw/pci/msix.c | 4 +- hw/pci/pci.c | 8 +-- hw/pci/shpc.c | 7 +-- hw/scsi/lsi53c895a.c | 48 +++++++++++++----- hw/scsi/scsi-bus.c | 4 +- hw/timer/twl92230.c | 4 +- hw/usb/redirect.c | 12 ++--- hw/virtio/virtio.c | 8 +-- include/migration/vmstate.h | 6 +-- migration/savevm.c | 11 ++-- migration/vmstate-types.c | 119 ++++++++++++++++++++++++-------------------- migration/vmstate.c | 31 ++++++------ qemu-options.hx | 4 +- scripts/checkpatch.pl | 3 +- target/alpha/machine.c | 5 +- target/arm/machine.c | 12 ++--- target/hppa/machine.c | 10 ++-- target/i386/kvm.c | 15 ++++-- target/i386/translate.c | 35 +++++++------ target/mips/machine.c | 14 +++--- target/openrisc/machine.c | 5 +- target/ppc/machine.c | 14 +++--- target/sparc/machine.c | 7 +-- tests/vhost-user-bridge.c | 2 +- vl.c | 9 ++-- 33 files changed, 285 insertions(+), 194 deletions(-)
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 14/14] hostmem: no need to check for host_memory_backend_mr_inited() in alloc()
From: Marc-André Lureau <[email protected]>
memfd_backend_memory_alloc/file_backend_memory_alloc both needlessly are are calling host_memory_backend_mr_inited() which creates an illusion that alloc could be called multiple times but it isn't, it's called once from UserCreatable complete().
--- backends/hostmem-file.c | 24 ++++++++++++------------ backends/hostmem-memfd.c | 4 ---- 2 files changed, 12 insertions(+), 16 deletions(-)
backends/hostmem-file.c +12 -12
@@ -42,6 +42,9 @@ static void file_backend_memory_alloc(HostMemoryBackend *backend, Error **errp) {HostMemoryBackendFile *fb =MEMORY_BACKEND_FILE (backend); +#ifdef CONFIG_POSIX +gchar *path; +#endif if (!backend->size) {error_setg (errp,"can't create backend with size 0" );
@@ -54,18 +57,15 @@ file_backend_memory_alloc(HostMemoryBackend *backend, Error **errp)#ifndef CONFIG_POSIX error_setg (errp,"-mem-path not supported on this host" );#else -if (!host_memory_backend_mr_inited (backend)) { -gchar *path; - backend->force_prealloc = mem_prealloc; - path =object_get_canonical_path (OBJECT (backend)); -memory_region_init_ram_from_file (&backend->mr,OBJECT (backend), - path, - backend->size, fb->align, - (backend->share ?RAM_SHARED :0 ) | - (fb->is_pmem ?RAM_PMEM :0 ), - fb->mem_path, errp); -g_free (path); - } + backend->force_prealloc = mem_prealloc; + path =object_get_canonical_path (OBJECT (backend)); +memory_region_init_ram_from_file (&backend->mr,OBJECT (backend), + path, + backend->size, fb->align, + (backend->share ?RAM_SHARED :0 ) | + (fb->is_pmem ?RAM_PMEM :0 ), + fb->mem_path, errp); +g_free (path);#endif }
backends/hostmem-memfd.c +0 -4
@@ -44,10 +44,6 @@ memfd_backend_memory_alloc(HostMemoryBackend *backend, Error **errp)return ; } -if (host_memory_backend_mr_inited (backend)) { -return ; - } - backend->force_prealloc = mem_prealloc; fd = qemu_memfd_create(TYPE_MEMORY_BACKEND_MEMFD, backend->size, m->hugetlb, m->hugetlbsize, m->seal ?
Signature · 1 line
1.8.3.1
Peter Maydell
AppliedQuoted 23 lines · Paolo Bonzini
The following changes since commit
4822f1ee9efa8df56e29db0a68323b484bdb0335:Merge remote-tracking branch 'remotes/kraxel/tags/fixes-31-20181127-pull-request' into staging (2018-11-27 11:21:38 +0000)
are available in the git repository at:
git://github.com/bonzini/qemu.gittags/for-upstreamfor you to fetch changes up to
86100290cb6600b3d65e0794b45c1b82ead99411:hostmem: no need to check for
host_memory_backend_mr_inited()inalloc()(2018-11-28 11:51:24 +0100)----------------------------------------------------------------
* lsi HBA reselection fix (George)
* Small cleanups (Li Qiang)
* bugfixes for vhost-user-bridge and hostmem (Marc-André)
* single-thread TCG fix (me)
* VMX migration blocker (me)
* target/i386 fix for LOCK (Richard)
*MAINTAINERSupdate (Philippe, Thomas)
Quoted 1 line
----------------------------------------------------------------
Applied, thanks.
-- PMM