Patch Round-up for stable 1.5.1, freeze on 2013-06-19
Hi everyone,
The following new patches are queued for QEMU stable v1.5.1:
https://github.com/mdroth/qemu/commits/stable-1.5-staging
The release is planned for 2013-06-26:
http://wiki.qemu.org/Planning/1.5
Please respond here or CC [email protected] on any patches you think should be included in the release. The cut-off date is 2013-06-19 for new patches.
Testing/feedback is greatly appreciated.
Thanks!
----------------------------------------------------------------
Amos Kong (1):
qdev: fix get_fw_dev_path to support to add nothing to fw_dev_path
Andreas Färber (1):
ide: Set BSY bit during FLUSH
Aneesh Kumar K.V (2):
hw/9pfs: Fix segfault with 9p2000.u
hw/9pfs: use O_NOFOLLOW for mapped readlink operation
Brad Smith (2):
Remove OSS support for OpenBSD
ui/gtk.c: Fix *BSD build of Gtk+ UI
Cornelia Huck (2):
s390x/css: Fix concurrent sense.
virtio-ccw: Fix unsetting of indicators.
Ed Maste (1):
host-libusb: Correct test for USB packet state
Gerd Hoffmann (3):
chardev: fix "info chardev" output Revert "roms: switch oldnoconfig to olddefconfig" update seabios to release 1.7.2.2
Luiz Capitulino (1):
target-i386: fix abort on bad PML4E/PDPTE/PDE/PTE addresses
Michael Marineau (1):
Fix usage of USB_DEV_FLAG_IS_HOST flag.
Michael Roth (1):
qemu-char: don't issue CHR_EVENT_OPEN in a BH
Michael S. Tsirkin (1):
q35: set fw_name
Paolo Bonzini (1):
do not check pointers after dereferencing them
Peter Crosthwaite (1):
qom/object: Don't poll cast cache for NULL objects
Richard Henderson (1):
target-i386: Fix aflag logic for CODE64 and the 0x67 prefix
Stefan Hajnoczi (2):
rtl8139: flush queued packets when RxBufPtr is written
vmxnet3: fix NICState cleanup
Stefano Stabellini (4):
xen: simplify xen_enabled
main_loop: do not set nonblocking if xen_enabled()
xen_machine_pv: do not create a dummy CPU in machine->init
xen: start PCI hole at 0xe0000000 (same as pc_init1 and qemu-xen-traditional)
Wendy Liang (1):
xilinx_axidma: Do not set DMA .notify to NULL after notify
audio/ossaudio.c | 4 ---- backends/baum.c | 2 -- backends/msmouse.c | 1 + configure | 5 ++--- hw/9pfs/virtio-9p-local.c | 2 +- hw/9pfs/virtio-9p.c | 2 +- hw/core/qdev.c | 10 ++++++++- hw/dma/xilinx_axidma.c | 3 ++- hw/i386/pc_piix.c | 6 +++--- hw/i386/xen_machine_pv.c | 16 --------------- hw/ide/core.c | 1 + hw/net/rtl8139.c | 3 +++ hw/net/vmxnet3.c | 2 +- hw/pci-host/q35.c | 1 + hw/s390x/css.c | 2 +- hw/s390x/virtio-ccw.c | 8 ++++---- hw/usb/core.c | 2 +- hw/usb/host-libusb.c | 2 +- hw/virtio/virtio-bus.c | 6 ++++++ include/hw/i386/pc.h | 3 +++ include/hw/xen/xen.h | 4 ---- include/qemu-common.h | 1 + include/sysemu/char.h | 2 +- monitor.c | 2 +- pc-bios/bios.bin | Bin 131072 -> 131072 bytes qemu-char.c | 41 ++++++++++++++++++------------------- qom/object.c | 4 ++-- roms/configure-seabios.sh | 2 +- roms/seabios | 2 +- savevm.c | 8 ++++---- spice-qemu-char.c | 1 + target-i386/arch_memory_mapping.c | 10 +++++---- target-i386/translate.c | 30 +++++++++++++-------------- ui/console.c | 4 ++++ ui/gtk.c | 2 ++ vl.c | 2 +- xen-all.c | 12 +++++------ 37 files changed, 107 insertions(+), 101 deletions(-)
PATCH 1/26 hw/9pfs: Fix segfault with 9p2000.u
From: "Aneesh Kumar K.V" <[email protected]>
When guest tries to chmod a block or char device file over 9pfs, the qemu process segfaults. With 9p2000.u protocol we use wstat to change mode bits and client don't send extension information for chmod. We need to check for size field to check whether extension info is present or not.
--- hw/9pfs/virtio-9p.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/9pfs/virtio-9p.c +1 -1
@@ -658,7 +658,7 @@ static mode_t v9mode_to_mode(uint32_t mode, V9fsString *extension) ret |=S_IFIFO ; }if (mode &P9_STAT_MODE_DEVICE ) { -if (extension && extension->data[0 ] =='c' ) { +if (extension->size && extension->data[0 ] =='c' ) { ret |=S_IFCHR ; }else { ret |=S_IFBLK ;
Signature · 1 line
1.7.9.5
PATCH 3/26 rtl8139: flush queued packets when RxBufPtr is written
In reply to Michael RothFrom: Stefan Hajnoczi <[email protected]>
Net queues support efficient "receive disable". For example, tap's file descriptor will not be polled while its peer has receive disabled. This saves CPU cycles for needlessly copying and then dropping packets which the peer cannot receive.
rtl8139 is missing the qemu_flush_queued_packets() call that wakes the queue up when receive becomes possible again.
As a result, the Windows 7 guest driver reaches a state where the rtl8139 cannot receive packets. The driver has actually refilled the receive buffer but we never resume reception.
The bug can be reproduced by running a large FTP 'get' inside a Windows 7 guest:
$ qemu -netdev tap,id=tap0,...
-device rtl8139,netdev=tap0The Linux guest driver does not trigger the bug, probably due to a different buffer management strategy.
--- hw/net/rtl8139.c | 3 +++ 1 file changed, 3 insertions(+)
hw/net/rtl8139.c +3 -0
@@ -2575,6 +2575,9 @@ static void rtl8139_RxBufPtr_write(RTL8139State *s, uint32_t val)/* this value is off by 16 */ s->RxBufPtr =MOD2 (val +0x10 , s->RxBufferSize); +/* more buffer space may be available so try to receive */ +qemu_flush_queued_packets (qemu_get_queue (s->nic)); +DPRINTF (" CAPR write: rx buffer length %d head 0x%04x read 0x%04x\n" , s->RxBufferSize, s->RxBufAddr, s->RxBufPtr); }
Signature · 1 line
1.7.9.5
PATCH 2/26 hw/9pfs: use O_NOFOLLOW for mapped readlink operation
In reply to Michael RothFrom: "Aneesh Kumar K.V" <[email protected]>
With mapped security models like mapped-xattr and mapped-file, we save the symlink target as file contents. Now if we ever expose a normal directory with mapped security model and find real symlinks in export path, never follow them and return proper error.
--- hw/9pfs/virtio-9p-local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/9pfs/virtio-9p-local.c +1 -1
@@ -284,7 +284,7 @@ static ssize_t local_readlink(FsContext *fs_ctx, V9fsPath *fs_path,if ((fs_ctx->export_flags &V9FS_SM_MAPPED ) || (fs_ctx->export_flags &V9FS_SM_MAPPED_FILE )) {int fd; - fd =open (rpath (fs_ctx, path, buffer),O_RDONLY ); + fd =open (rpath (fs_ctx, path, buffer),O_RDONLY |O_NOFOLLOW );if (fd ==-1 ) {return -1 ; }
Signature · 1 line
1.7.9.5
PATCH 4/26 qom/object: Don't poll cast cache for NULL objects
In reply to Michael RothFrom: Peter Crosthwaite <[email protected]>
object_dynamic_cast_assert used to be tolerant of NULL objects and not assert. It's clear from the implementation that this is the expected behavior.
The preceding check of the cast cache dereferences obj however causing a segfault. Fix by conditionalizing the cast cache logic on obj being non-null.
Message-id: 8e2bef6a55753869c50bfa32226f7fcf0439ca62.1369183592.git.peter.crosthwaite@xilinx.com
--- qom/object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
qom/object.c +2 -2
@@ -442,7 +442,7 @@ Object *object_dynamic_cast_assert(Object *obj, const char *typename,int i;Object *inst; -for (i =0 ; i <OBJECT_CLASS_CAST_CACHE ; i++) { +for (i =0 ; obj && i <OBJECT_CLASS_CAST_CACHE ; i++) {if (obj->class->cast_cache[i] == typename) { goto out; }
@@ -458,7 +458,7 @@ Object *object_dynamic_cast_assert(Object *obj, const char *typename,assert (obj == inst); -if (obj == inst) { +if (obj && obj == inst) {for (i =1 ; i <OBJECT_CLASS_CAST_CACHE ; i++) { obj->class->cast_cache[i -1 ] = obj->class->cast_cache[i]; }
Signature · 1 line
1.7.9.5
PATCH 5/26 xen: simplify xen_enabled
In reply to Michael RothFrom: Stefano Stabellini <[email protected]>
No need for preprocessor conditionals in xen_enabled: xen_allowed is always defined.
--- include/hw/xen/xen.h | 4 ---- 1 file changed, 4 deletions(-)
include/hw/xen/xen.h +0 -4
@@ -25,11 +25,7 @@ extern bool xen_allowed;static inline bool xen_enabled (void ) { -#if defined(CONFIG_XEN_BACKEND ) && defined(CONFIG_XEN )return xen_allowed; -#else -return 0 ; -#endif }int xen_pci_slot_get_pirq (PCIDevice *pci_dev,int irq_num);
Signature · 1 line
1.7.9.5
PATCH 6/26 main_loop: do not set nonblocking if xen_enabled()
In reply to Michael RothFrom: Stefano Stabellini <[email protected]>
--- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
vl.c +1 -1
@@ -2022,7 +2022,7 @@ static void main_loop(void)int64_t ti;#endif do { - nonblocking = !kvm_enabled() && last_io > 0; + nonblocking = !kvm_enabled() && !xen_enabled() && last_io > 0; #ifdef CONFIG_PROFILER ti = profile_getclock(); #endif
Signature · 1 line
1.7.9.5
PATCH 7/26 xen_machine_pv: do not create a dummy CPU in machine->init
In reply to Michael RothFrom: Stefano Stabellini <[email protected]>
This fixes a regression introduced by:
commit 62fc403f11523169eb4264de31279745f48e3ecc
Author: Igor Mammedov <[email protected]> Date: Mon Apr 29 18:54:13 2013 +0200
target-i386: Attach ICC bus to CPU on its creation
X86CPU should have parent bus so it could provide bus for child APIC.
The commit makes it mandatory to pass a valid ICC bus to cpu_x86_create, but cpu_x86_init just passes NULL to it.xen_machine_pv uses cpu_x86_init, therefore it has been broken.
This patch fixes the problem by removing the dummy CPU creation altogether from xen_init_pv, relying on the fact that QEMU can now cope with a machine without an emulated CPU.
--- hw/i386/xen_machine_pv.c | 16 ---------------- 1 file changed, 16 deletions(-)
hw/i386/xen_machine_pv.c +0 -16
@@ -23,7 +23,6 @@*/ #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/boards.h" #include "hw/xen/xen_backend.h" #include "xen_domainbuild.h"
@@ -31,27 +30,12 @@static void xen_init_pv (QEMUMachineInitArgs *args) { -const char *cpu_model = args->cpu_model;const char *kernel_filename = args->kernel_filename;const char *kernel_cmdline = args->kernel_cmdline;const char *initrd_filename = args->initrd_filename; -X86CPU *cpu; -CPUState *cs;DriveInfo *dinfo;int i; -/* Initialize a dummy CPU */ -if (cpu_model ==NULL ) { -#ifdef TARGET_X86_64 - cpu_model ="qemu64" ; -#else - cpu_model ="qemu32" ; -#endif - } - cpu =cpu_x86_init (cpu_model); - cs =CPU (cpu); - cs->halted =1 ; -/* Initialize backend core & drivers */ if (xen_be_init () !=0 ) {fprintf (stderr,"%s: xen backend core setup failed\n" , __FUNCTION__);
Signature · 1 line
1.7.9.5
PATCH 8/26 chardev: fix "info chardev" output
In reply to Michael RothFrom: Gerd Hoffmann <[email protected]>
Fill unset CharDriverState->filename with the backend name, so 'info chardev' will return at least the chardev type. Don't touch it in case the chardev init function filled it already, like the socket+pty chardevs do for example.
--- qemu-char.c | 3 +++ 1 file changed, 3 insertions(+)
qemu-char.c +3 -0
@@ -3801,6 +3801,9 @@ ChardevReturn *qmp_chardev_add(const char *id, ChardevBackend *backend, chr->label =g_strdup (id); chr->avail_connections = (backend->kind ==CHARDEV_BACKEND_KIND_MUX ) ?MAX_MUX :1 ; +if (!chr->filename) { + chr->filename =g_strdup (ChardevBackendKind_lookup[backend->kind]); + }QTAILQ_INSERT_TAIL (&chardevs, chr, next);return ret; }else {
Signature · 1 line
1.7.9.5
PATCH 9/26 ide: Set BSY bit during FLUSH
In reply to Michael RothFrom: Andreas Färber <[email protected]>
The implementation of the ATA FLUSH command invokes a flush at the block layer, which may on raw files on POSIX entail a synchronous fdatasync(). This may in some cases take so long that the SLES 11 SP1 guest driver reports I/O errors and filesystems get corrupted or remounted read-only.
Avoid this by setting BUSY_STAT, so that the guest is made aware we are in the middle of an operation and no ATA commands are attempted to be processed concurrently.
Addresses BNC#637297.
--- hw/ide/core.c | 1 + 1 file changed, 1 insertion(+)
hw/ide/core.c +1 -0
@@ -814,6 +814,7 @@ void ide_flush_cache(IDEState *s)return ; } + s->status |=BUSY_STAT ;bdrv_acct_start (s->bs, &s->acct,0 ,BDRV_ACCT_FLUSH );bdrv_aio_flush (s->bs, ide_flush_cb, s); }
Signature · 1 line
1.7.9.5
PATCH 10/26 Revert "roms: switch oldnoconfig to olddefconfig"
In reply to Michael RothFrom: Gerd Hoffmann <[email protected]>
This reverts commit a5519b42cfd6c00e9f8b31c5aad7682e7a9f1181.
Breaks "make bios" in roms/ as the kconfig version in seabios doesn't support olddefconfig. Must have been be totally untested.
--- roms/configure-seabios.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
roms/configure-seabios.sh +1 -1
@@ -2,4 +2,4 @@ config="$1" make -C seabios clean distclean cp "$config" seabios/.config -make -C seabios olddefconfig +make -C seabios oldnoconfig
Signature · 1 line
1.7.9.5
PATCH 12/26 target-i386: fix abort on bad PML4E/PDPTE/PDE/PTE addresses
In reply to Michael RothFrom: Luiz Capitulino <[email protected]>
The code used to walk IA-32e page-tables, and possibly PAE page-tables, uses the bit mask ~0xfff to get the next PML4E/PDPTE/PDE/PTE address.
However, as we use a uint64_t to store the resulting address, that mask gets expanded to 0xfffffffffffff000 which not only ends up selecting reserved bits but also selects the XD bit (execute-disable) which happens to be enabled by Windows 8, causing qemu_get_ram_ptr() to abort.
This commit fixes that problem by replacing ~0xfff by a correct mask that only selects the address bit range (ie. bits 51:12).
--- target-i386/arch_memory_mapping.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
target-i386/arch_memory_mapping.c +6 -4
@@ -75,6 +75,8 @@ static void walk_pte2(MemoryMappingList *list, }/* PAE Paging or IA-32e Paging */ +#define PLM4_ADDR_MASK 0xffffffffff000/* selects bits 51:12 */ +static void walk_pde (MemoryMappingList *list,hwaddr pde_start_addr,int32_t a20_mask,target_ulong start_line_addr) {
@@ -105,7 +107,7 @@ static void walk_pde(MemoryMappingList *list, hwaddr pde_start_addr,continue ; } - pte_start_addr = (pde & ~0xfff ) & a20_mask; + pte_start_addr = (pde &PLM4_ADDR_MASK ) & a20_mask;walk_pte (list, pte_start_addr, a20_mask, line_addr); } }
@@ -208,7 +210,7 @@ static void walk_pdpe(MemoryMappingList *list,continue ; } - pde_start_addr = (pdpe & ~0xfff ) & a20_mask; + pde_start_addr = (pdpe &PLM4_ADDR_MASK ) & a20_mask;walk_pde (list, pde_start_addr, a20_mask, line_addr); } }
@@ -231,7 +233,7 @@ static void walk_pml4e(MemoryMappingList *list, } line_addr = ((i &0x1ffULL ) <<39 ) | (0xffffULL <<48 ); - pdpe_start_addr = (pml4e & ~0xfff ) & a20_mask; + pdpe_start_addr = (pml4e &PLM4_ADDR_MASK ) & a20_mask;walk_pdpe (list, pdpe_start_addr, a20_mask, line_addr); } }
@@ -249,7 +251,7 @@ int cpu_get_memory_mapping(MemoryMappingList *list, CPUArchState *env)if (env->hflags &HF_LMA_MASK ) {hwaddr pml4e_addr; - pml4e_addr = (env->cr[3 ] & ~0xfff ) & env->a20_mask; + pml4e_addr = (env->cr[3 ] &PLM4_ADDR_MASK ) & env->a20_mask;walk_pml4e (list, pml4e_addr, env->a20_mask); } else#endif
Signature · 1 line
1.7.9.5
PATCH 13/26 Remove OSS support for OpenBSD
In reply to Michael RothFrom: Brad Smith <[email protected]>
Remove the OSS support for OpenBSD. The OSS API has not been usable for quite some time.
--- audio/ossaudio.c | 4 ---- configure | 5 ++--- 2 files changed, 2 insertions(+), 7 deletions(-)
audio/ossaudio.c +0 -4
@@ -25,11 +25,7 @@#include <sys/mman.h> #include <sys/types.h> #include <sys/ioctl.h> -#ifdef __OpenBSD__ -#include <soundcard.h> -#else #include <sys/soundcard.h> -#endif #include "qemu-common.h" #include "qemu/main-loop.h" #include "qemu/host-utils.h"
configure +2 -3
@@ -468,9 +468,8 @@ NetBSD) OpenBSD) bsd="yes" make="${MAKE-gmake}" - audio_drv_list="oss" - audio_possible_drivers="oss sdl esd" - oss_lib="-lossaudio" + audio_drv_list="sdl" + audio_possible_drivers="sdl esd" ;; Darwin) bsd="yes"
Signature · 1 line
1.7.9.5
PATCH 14/26 xen: start PCI hole at 0xe0000000 (same as pc_init1 and qemu-xen-traditional)
In reply to Michael RothFrom: Stefano Stabellini <[email protected]>
We are currently setting the PCI hole to start at HVM_BELOW_4G_RAM_END, that is 0xf0000000.
Start the PCI hole at 0xe0000000 instead, that is the same value used by pc_init1 and qemu-xen-traditional.
--- hw/i386/pc_piix.c | 6 +++--- include/hw/i386/pc.h | 3 +++ xen-all.c | 12 ++++++------ 3 files changed, 12 insertions(+), 9 deletions(-)
hw/i386/pc_piix.c +3 -3
@@ -102,9 +102,9 @@ static void pc_init1(MemoryRegion *system_memory,kvmclock_create (); } -if (ram_size >=0xe0000000 ) { - above_4g_mem_size = ram_size -0xe0000000 ; - below_4g_mem_size =0xe0000000 ; +if (ram_size >=QEMU_BELOW_4G_RAM_END ) { + above_4g_mem_size = ram_size -QEMU_BELOW_4G_RAM_END ; + below_4g_mem_size =QEMU_BELOW_4G_RAM_END ; }else { above_4g_mem_size =0 ; below_4g_mem_size = ram_size;
include/hw/i386/pc.h +3 -0
@@ -78,6 +78,9 @@ extern int fd_bootchk;void pc_register_ferr_irq (qemu_irq irq);void pc_acpi_smi_interrupt (void *opaque,int irq,int level); +#define QEMU_BELOW_4G_RAM_END 0xe0000000 +#define QEMU_BELOW_4G_MMIO_LENGTH ((1ULL << 32) - QEMU_BELOW_4G_RAM_END) +void pc_cpus_init (const char *cpu_model,DeviceState *icc_bridge);void pc_hot_add_cpu (const int64_t id,Error **errp);void pc_acpi_init (const char *default_dsdt);
xen-all.c +6 -6
@@ -161,18 +161,18 @@ static void xen_ram_init(ram_addr_t ram_size)ram_addr_t block_len; block_len = ram_size; -if (ram_size >=HVM_BELOW_4G_RAM_END ) { +if (ram_size >=QEMU_BELOW_4G_RAM_END ) {/* Xen does not allocate the memory continuously, and keep a hole at -* HVM_BELOW_4G_MMIO_START of HVM_BELOW_4G_MMIO_LENGTH +* QEMU_BELOW_4G_RAM_END of QEMU_BELOW_4G_MMIO_LENGTH */ - block_len +=HVM_BELOW_4G_MMIO_LENGTH ; + block_len +=QEMU_BELOW_4G_MMIO_LENGTH ; }memory_region_init_ram (&ram_memory,"xen.ram" , block_len);vmstate_register_ram_global (&ram_memory); -if (ram_size >=HVM_BELOW_4G_RAM_END ) { - above_4g_mem_size = ram_size -HVM_BELOW_4G_RAM_END ; - below_4g_mem_size =HVM_BELOW_4G_RAM_END ; +if (ram_size >=QEMU_BELOW_4G_RAM_END ) { + above_4g_mem_size = ram_size -QEMU_BELOW_4G_RAM_END ; + below_4g_mem_size =QEMU_BELOW_4G_RAM_END ; }else { below_4g_mem_size = ram_size; }
Signature · 1 line
1.7.9.5
PATCH 11/26 update seabios to release 1.7.2.2
In reply to Michael RothFrom: Gerd Hoffmann <[email protected]>
git shortlog from 1.7.2.1
Asias He (2):
virtio-scsi: Pack struct virtio_scsi_{req_cmd,resp_cmd}
virtio-scsi: Set _DRIVER_OK flag before scsi target scanning
Kevin O'Connor (1):
Cache boot-fail-wait to avoid romfile access after POST.
--- pc-bios/bios.bin | Bin 131072 -> 131072 bytes roms/seabios | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-)
pc-bios/bios.bin binary +0 -0
roms/seabios +1 -1
@@ -1 +1 @@ -Subproject commit 88cb66ea542906ffff8a80ef397b9e3adbb33116 +Subproject commit d4f7d90f47462b4e8836899adc5060fbde5253e9
Signature · 1 line
1.7.9.5
PATCH 15/26 do not check pointers after dereferencing them
In reply to Michael RothFrom: Paolo Bonzini <[email protected]>
Two instances, both spotted by Coverity. In one, two blocks were swapped. In the other, the check is not needed anymore.
--- monitor.c | 2 +- savevm.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)
monitor.c +1 -1
@@ -281,7 +281,7 @@ void monitor_flush(Monitor *mon) buf =qstring_get_str (mon->outbuf); len =qstring_get_length (mon->outbuf); -if (mon && len && !mon->mux_out) { +if (len && !mon->mux_out) { rc =qemu_chr_fe_write (mon->chr, (const uint8_t *) buf, len);if (rc == len) {/* all flushed */
savevm.c +4 -4
@@ -322,13 +322,13 @@ QEMUFile *qemu_popen_cmd(const char *command, const char *mode)FILE *stdio_file;QEMUFileStdio *s; - stdio_file =popen (command, mode); -if (stdio_file ==NULL ) { +if (mode ==NULL || (mode[0 ] !='r' && mode[0 ] !='w' ) || mode[1 ] !=0 ) { +fprintf (stderr,"qemu_popen: Argument validity check failed\n" );return NULL ; } -if (mode ==NULL || (mode[0 ] !='r' && mode[0 ] !='w' ) || mode[1 ] !=0 ) { -fprintf (stderr,"qemu_popen: Argument validity check failed\n" ); + stdio_file =popen (command, mode); +if (stdio_file ==NULL ) {return NULL ; }
Signature · 1 line
1.7.9.5
PATCH 16/26 qdev: fix get_fw_dev_path to support to add nothing to fw_dev_path
In reply to Michael RothFrom: Amos Kong <[email protected]>
Recent virtio refactoring in QEMU made virtio-bus become the parent bus of scsi-bus, and virtio-bus doesn't have get_fw_dev_path implementation, typename will be added to fw_dev_path by default, the new fw_dev_path could not be identified by seabios. It causes that bootindex parameter of scsi device doesn't work.
This patch implements get_fw_dev_path() in BusClass, it will be called if bus doesn't implement the method, tyename will be added to fw_dev_path. If the implemented method returns NULL, nothing will be added to fw_dev_path.
It also implements virtio_bus_get_fw_dev_path() to return NULL. Then QEMU will still pass original style of fw_dev_path to seabios.
Message-id: [email protected] --
v2: only add nothing to fw_dev_path when get_fw_dev_path() is
implemented and returns NULL. then it will not effect other devices don't have get_fw_dev_path() implementation.
v3: implement default get_fw_dev_path() in BusClass
--- hw/core/qdev.c | 10 +++++++++- hw/virtio/virtio-bus.c | 6 ++++++ 2 files changed, 15 insertions(+), 1 deletion(-)
hw/core/qdev.c +9 -1
@@ -515,7 +515,7 @@ static int qdev_get_fw_dev_path_helper(DeviceState *dev, char *p, int size) l +=snprintf (p + l, size - l,"%s" , d);g_free (d); }else { - l +=snprintf (p + l, size - l,"%s" ,object_get_typename (OBJECT (dev))); +return l; } } l +=snprintf (p + l , size - l,"/" );
@@ -867,9 +867,17 @@ static void qbus_initfn(Object *obj)QTAILQ_INIT (&bus->children); } +static char *default_bus_get_fw_dev_path (DeviceState *dev) +{ +return g_strdup (object_get_typename (OBJECT (dev))); +} +static void bus_class_init (ObjectClass *class,void *data) { +BusClass *bc =BUS_CLASS (class); + class->unparent = bus_unparent; + bc->get_fw_dev_path = default_bus_get_fw_dev_path; }static void qbus_finalize (Object *obj)
hw/virtio/virtio-bus.c +6 -0
@@ -161,10 +161,16 @@ static char *virtio_bus_get_dev_path(DeviceState *dev)return qdev_get_dev_path (proxy); } +static char *virtio_bus_get_fw_dev_path (DeviceState *dev) +{ +return NULL ; +} +static void virtio_bus_class_init (ObjectClass *klass,void *data) {BusClass *bus_class =BUS_CLASS (klass); bus_class->get_dev_path = virtio_bus_get_dev_path; + bus_class->get_fw_dev_path = virtio_bus_get_fw_dev_path; }static const TypeInfo virtio_bus_info = {
Signature · 1 line
1.7.9.5
PATCH 17/26 host-libusb: Correct test for USB packet state
In reply to Michael RothFrom: Ed Maste <[email protected]>
USB_RET_ASYNC is -6, so inflight was always false.
--- hw/usb/host-libusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/usb/host-libusb.c +1 -1
@@ -385,7 +385,7 @@ out:static void usb_host_req_abort (USBHostRequest *r) {USBHostDevice *s = r->host; -bool inflight = (r->p && r->p->state ==USB_RET_ASYNC ); +bool inflight = (r->p && r->p->state ==USB_PACKET_ASYNC );if (inflight) { r->p->status =USB_RET_NODEV ;
Signature · 1 line
1.7.9.5
PATCH 18/26 Fix usage of USB_DEV_FLAG_IS_HOST flag.
In reply to Michael RothFrom: Michael Marineau <[email protected]>
USB_DEV_FLAG_IS_HOST is the bit number, not value. Booting with a "Fitbit Base Station" USB dongle was triggering this assert.
--- hw/usb/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/usb/core.c +1 -1
@@ -410,7 +410,7 @@ void usb_handle_packet(USBDevice *dev, USBPacket *p)assert (p->ep->type !=USB_ENDPOINT_XFER_ISOC );/* using async for interrupt packets breaks migration */ assert (p->ep->type !=USB_ENDPOINT_XFER_INT || - (dev->flags &USB_DEV_FLAG_IS_HOST )); + (dev->flags & (1 <<USB_DEV_FLAG_IS_HOST )));usb_packet_set_state (p,USB_PACKET_ASYNC );QTAILQ_INSERT_TAIL (&p->ep->queue, p, queue); }else if (p->status ==USB_RET_ADD_TO_QUEUE ) {
Signature · 1 line
1.7.9.5
PATCH 19/26 vmxnet3: fix NICState cleanup
In reply to Michael RothFrom: Stefan Hajnoczi <[email protected]>
Use qemu_del_nic() instead of qemu_del_net_client() to correctly free the entire NICState.
--- hw/net/vmxnet3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/net/vmxnet3.c +1 -1
@@ -1892,7 +1892,7 @@ static void vmxnet3_net_uninit(VMXNET3State *s)vmxnet_tx_pkt_reset (s->tx_pkt);vmxnet_tx_pkt_uninit (s->tx_pkt);vmxnet_rx_pkt_uninit (s->rx_pkt); -qemu_del_net_client (qemu_get_queue (s->nic)); +qemu_del_nic (s->nic); }static void vmxnet3_net_init (VMXNET3State *s)
Signature · 1 line
1.7.9.5
PATCH 20/26 ui/gtk.c: Fix *BSD build of Gtk+ UI
In reply to Michael RothFrom: Brad Smith <[email protected]>
Fix the build of the Gtk+ UI on *BSD systems.
Message-id: [email protected]
--- include/qemu-common.h | 1 + 1 file changed, 1 insertion(+)
include/qemu-common.h +1 -0
@@ -45,6 +45,7 @@#if defined(__GLIBC__)# include <pty.h> #elif definedCONFIG_BSD +# include <termios.h> # if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)# include <libutil.h> # else
Signature · 1 line
1.7.9.5
PATCH 21/26 s390x/css: Fix concurrent sense.
In reply to Michael RothFrom: Cornelia Huck <[email protected]>
Fix an off-by-one error when indicating availablity of concurrent sense data.
--- hw/s390x/css.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/s390x/css.c +1 -1
@@ -777,7 +777,7 @@ int css_do_tsch(SubchDev *sch, IRB *target_irb) (p->chars & PMCW_CHARS_MASK_CSENSE)) { irb.scsw.flags |=SCSW_FLAGS_MASK_ESWF |SCSW_FLAGS_MASK_ECTL ;memcpy (irb.ecw, sch->sense_data,sizeof (sch->sense_data)); - irb.esw[1 ] =0x02000000 | (sizeof (sch->sense_data) <<8 ); + irb.esw[1 ] =0x01000000 | (sizeof (sch->sense_data) <<8 ); } }/* Store the irb to the guest. */
Signature · 1 line
1.7.9.5
PATCH 22/26 virtio-ccw: Fix unsetting of indicators.
In reply to Michael RothFrom: Cornelia Huck <[email protected]>
Interpretation of the ccws to register (configuration) indicators contained a thinko: We want to disallow reading from 0, but setting the indicator pointer to 0 is fine.
Let's fix the handling for CCW_CMD_SET{,_CONF}_IND.
--- hw/s390x/virtio-ccw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
hw/s390x/virtio-ccw.c +4 -4
@@ -328,10 +328,10 @@ static int virtio_ccw_cb(SubchDev *sch, CCW1 ccw) ret = -EINVAL ;break ; } - indicators =ldq_phys (ccw.cda); -if (!indicators) { +if (!ccw.cda) { ret = -EFAULT ; }else { + indicators =ldq_phys (ccw.cda); dev->indicators = indicators; sch->curr_status.scsw.count = ccw.count -sizeof (indicators); ret =0 ;
@@ -348,10 +348,10 @@ static int virtio_ccw_cb(SubchDev *sch, CCW1 ccw) ret = -EINVAL ;break ; } - indicators =ldq_phys (ccw.cda); -if (!indicators) { +if (!ccw.cda) { ret = -EFAULT ; }else { + indicators =ldq_phys (ccw.cda); dev->indicators2 = indicators; sch->curr_status.scsw.count = ccw.count -sizeof (indicators); ret =0 ;
Signature · 1 line
1.7.9.5
PATCH 23/26 xilinx_axidma: Do not set DMA .notify to NULL after notify
In reply to Michael RothFrom: Wendy Liang <[email protected]>
If a stream notify function is not ready, it may re-populate the notify call- back to indicate it should be re-polled later. This break in this usage, as immediately following the notify() call, .notify is set to NULL. reverse the ordering of the notify call and NULL assignment accordingly.
[PC: Reworked commit message]
--- hw/dma/xilinx_axidma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
hw/dma/xilinx_axidma.c +2 -1
@@ -514,8 +514,9 @@ static void axidma_write(void *opaque, hwaddr addr,break ; }if (sid ==1 && d->notify) { - d->notify (d->notify_opaque); +StreamCanPushNotifyFn notifytmp = d->notify; d->notify =NULL ; +notifytmp (d->notify_opaque); }stream_update_irq (s); }
Signature · 1 line
1.7.9.5
PATCH 24/26 qemu-char: don't issue CHR_EVENT_OPEN in a BH
In reply to Michael RothWhen CHR_EVENT_OPENED was initially added, it was CHR_EVENT_RESET, and it was issued as a bottom-half:
86e94dea5b740dad65446c857f6959eae43e0ba6
Which we basically used to print out a greeting/prompt for the monitor.
AFAICT the only reason this was ever done in a BH was because in some cases we'd modify the chr_write handler for a new chardev backend *after* the site where we issued the reset (see:
86e94d:qemu_chr_open_stdio())
At some point this event was renamed to CHR_EVENT_OPENED, and we've maintained the use of this BH ever since.
However, due to 9f939df955a4152aad69a19a77e0898631bb2c18, we schedule the BH via g_idle_add(), which is causing events to sometimes be delivered after we've already begun processing data from backends, leading to:
known bugs:
QMP:
session negotation resets with OPENED event, in some cases this is causing new sessions to get sporadically reset
potential bugs:
hw/usb/redirect.c:
can_read handler checks for dev->parser != NULL, which may be true if CLOSED BH has not been executed yet. In the past, OPENED quiesced outstanding CLOSED events prior to us reading client data. If it's delayed, our check may allow reads to occur even though we haven't processed the OPENED event yet, and when we do finally get the OPENED event, our state may get reset.
qtest.c:
can begin session before OPENED event is processed, leading to a spurious reset of the system and irq_levels
gdbstub.c:
may start a gdb session prior to the machine being paused
To fix these, let's just drop the BH.
Since the initial reasoning for using it still applies to an extent, work around that by deferring the delivery of CHR_EVENT_OPENED until after the chardevs have been fully initialized, toward the end of qmp_chardev_add() (or some cases, qemu_chr_new_from_opts()). This defers delivery long enough that we can be assured a CharDriverState is fully initialized before CHR_EVENT_OPENED is sent.
Also, rather than requiring each chardev to do an explicit open, do it automatically, and allow the small few who don't desire such behavior to suppress the OPENED-on-init behavior by setting a 'explicit_be_open' flag.
We additionally add missing OPENED events for stdio backends on w32, which were previously not being issued, causing us to not recieve the banner and initial prompts for qmp/hmp.
Message-id: [email protected]
--- backends/baum.c | 2 -- backends/msmouse.c | 1 + include/sysemu/char.h | 2 +- qemu-char.c | 38 +++++++++++++++++--------------------- spice-qemu-char.c | 1 + ui/console.c | 4 ++++ ui/gtk.c | 2 ++ 7 files changed, 26 insertions(+), 24 deletions(-)
backends/baum.c +0 -2
@@ -611,8 +611,6 @@ CharDriverState *chr_baum_init(void)qemu_set_fd_handler (baum->brlapi_fd, baum_chr_read,NULL , baum); -qemu_chr_be_generic_open (chr); -return chr; fail:
backends/msmouse.c +1 -0
@@ -70,6 +70,7 @@ CharDriverState *qemu_chr_open_msmouse(void) chr =g_malloc0 (sizeof (CharDriverState)); chr->chr_write = msmouse_chr_write; chr->chr_close = msmouse_chr_close; + chr->explicit_be_open = true;qemu_add_mouse_event_handler (msmouse_event, chr,0 ,"QEMU Microsoft Mouse" );
include/sysemu/char.h +1 -1
@@ -70,12 +70,12 @@ struct CharDriverState {void (*chr_set_echo)(struct CharDriverState *chr,bool echo);void (*chr_set_fe_open)(struct CharDriverState *chr,int fe_open);void *opaque; -int idle_tag;char *label;char *filename;int be_open;int fe_open;int explicit_fe_open; +int explicit_be_open;int avail_connections;QemuOpts *opts;QTAILQ_ENTRY (CharDriverState) next;
qemu-char.c +17 -21
@@ -110,19 +110,9 @@ void qemu_chr_be_event(CharDriverState *s, int event) s->chr_event (s->handler_opaque, event); } -static gboolean qemu_chr_be_generic_open_bh (gpointer opaque) -{ -CharDriverState *s = opaque; -qemu_chr_be_event (s,CHR_EVENT_OPENED ); - s->idle_tag =0 ; -return FALSE; -} -void qemu_chr_be_generic_open (CharDriverState *s) { -if (s->idle_tag ==0 ) { - s->idle_tag =g_idle_add (qemu_chr_be_generic_open_bh, s); - } +qemu_chr_be_event (s,CHR_EVENT_OPENED ); }int qemu_chr_fe_write (CharDriverState *s,const uint8_t *buf,int len)
@@ -247,6 +237,7 @@ static CharDriverState *qemu_chr_open_null(void) chr =g_malloc0 (sizeof (CharDriverState)); chr->chr_write = null_chr_write; + chr->explicit_be_open = true;return chr; }
@@ -504,9 +495,6 @@ static CharDriverState *qemu_chr_open_mux(CharDriverState *drv)/* Frontend guest-open / -close notification is not support with muxes */ chr->chr_set_fe_open =NULL ; -/* Muxes are always open on creation */ -qemu_chr_be_generic_open (chr); -return chr; }
@@ -883,8 +871,6 @@ static CharDriverState *qemu_chr_open_fd(int fd_in, int fd_out) chr->chr_update_read_handler = fd_chr_update_read_handler; chr->chr_close = fd_chr_close; -qemu_chr_be_generic_open (chr); -return chr; }
@@ -1243,6 +1229,7 @@ static CharDriverState *qemu_chr_open_pty(const char *id, chr->chr_update_read_handler = pty_chr_update_read_handler; chr->chr_close = pty_chr_close; chr->chr_add_watch = pty_chr_add_watch; + chr->explicit_be_open = true; s->fd =io_channel_from_fd (master_fd); s->timer_tag =0 ;
@@ -1595,8 +1582,6 @@ static CharDriverState *qemu_chr_open_pp_fd(int fd) chr->chr_close = pp_close; chr->opaque = drv; -qemu_chr_be_generic_open (chr); - return chr; }#endif /* __linux__ */
@@ -1650,6 +1635,7 @@ static CharDriverState *qemu_chr_open_pp_fd(int fd) chr->opaque = (void *)(intptr_t )fd; chr->chr_write = null_chr_write; chr->chr_ioctl = pp_ioctl; + chr->explicit_be_open = true; return chr; }#endif
@@ -1880,7 +1866,6 @@ static CharDriverState *qemu_chr_open_win_path(const char *filename)g_free (chr);return NULL ; } -qemu_chr_be_generic_open (chr);return chr; }
@@ -1980,7 +1965,6 @@ static CharDriverState *qemu_chr_open_pipe(ChardevHostdev *opts)g_free (chr);return NULL ; } -qemu_chr_be_generic_open (chr);return chr; }
@@ -1994,7 +1978,6 @@ static CharDriverState *qemu_chr_open_win_file(HANDLE fd_out) s->hcom = fd_out; chr->opaque = s; chr->chr_write = win_chr_write; -qemu_chr_be_generic_open (chr);return chr; }
@@ -2329,6 +2312,8 @@ static CharDriverState *qemu_chr_open_udp_fd(int fd) chr->chr_write = udp_chr_write; chr->chr_update_read_handler = udp_chr_update_read_handler; chr->chr_close = udp_chr_close; +/* be isn't opened until we get a connection */ + chr->explicit_be_open = true;return chr; }
@@ -2731,6 +2716,8 @@ static CharDriverState *qemu_chr_open_socket_fd(int fd, bool do_nodelay, chr->get_msgfd = tcp_get_msgfd; chr->chr_add_client = tcp_chr_add_client; chr->chr_add_watch = tcp_chr_add_watch; +/* be isn't opened until we get a connection */ + chr->explicit_be_open = true;if (is_listen) { s->listen_fd = fd;
@@ -3325,6 +3312,12 @@ CharDriverState *qemu_chr_new_from_opts(QemuOpts *opts,if (!chr->filename) chr->filename =g_strdup (qemu_opt_get (opts,"backend" )); chr->init = init; +/* if we didn't create the chardev via qmp_chardev_add, we +* need to send the OPENED event here +*/ +if (!chr->explicit_be_open) { +qemu_chr_be_event (chr,CHR_EVENT_OPENED ); + }QTAILQ_INSERT_TAIL (&chardevs, chr, next);if (qemu_opt_get_bool (opts,"mux" ,0 )) {
@@ -3804,6 +3797,9 @@ ChardevReturn *qmp_chardev_add(const char *id, ChardevBackend *backend,if (!chr->filename) { chr->filename =g_strdup (ChardevBackendKind_lookup[backend->kind]); } +if (!chr->explicit_be_open) { +qemu_chr_be_event (chr,CHR_EVENT_OPENED ); + }QTAILQ_INSERT_TAIL (&chardevs, chr, next);return ret; }else {
spice-qemu-char.c +1 -0
@@ -255,6 +255,7 @@ static CharDriverState *chr_open(const char *subtype) chr->chr_add_watch = spice_chr_add_watch; chr->chr_close = spice_chr_close; chr->chr_set_fe_open = spice_chr_set_fe_open; + chr->explicit_be_open = true;QLIST_INSERT_HEAD (&spice_chars, s, next);
ui/console.c +4 -0
@@ -1788,6 +1788,10 @@ static CharDriverState *text_console_init(ChardevVC *vc) s->chr = chr; chr->opaque = s; chr->chr_set_echo = text_console_set_echo; +/* console/chardev init sometimes completes elsewhere in a 2nd +* stage, so defer OPENED events until they are fully initialized +*/ + chr->explicit_be_open = true;if (display_state) {text_console_do_init (chr, display_state);
ui/gtk.c +2 -0
@@ -1117,6 +1117,8 @@ static CharDriverState *gd_vc_handler(ChardevVC *unused) chr =g_malloc0 (sizeof (*chr)); chr->chr_write = gd_vc_chr_write; +/* defer OPENED events until our vc is fully initialized */ + chr->explicit_be_open = true; vcs[nb_vcs++] = chr;
Signature · 1 line
1.7.9.5
PATCH 25/26 target-i386: Fix aflag logic for CODE64 and the 0x67 prefix
In reply to Michael RothFrom: Richard Henderson <[email protected]>
The code reorganization in commit 4a6fd938 broke handling of PREFIX_ADR. While fixing this, tidy and comment the code so that it's more obvious what's going on in setting both aflag and dflag.
The TARGET_X86_64 ifdef can be eliminated because CODE64 expands to the constant zero when TARGET_X86_64 is undefined.
Message-id: [email protected]
--- target-i386/translate.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-)
target-i386/translate.c +15 -15
@@ -4677,8 +4677,6 @@ static target_ulong disas_insn(CPUX86State *env, DisasContext *s, } s->pc = pc_start; prefixes =0 ; - aflag = s->code32; - dflag = s->code32; s->override =-1 ; rex_w =-1 ; rex_r =0 ;
@@ -4801,23 +4799,25 @@ static target_ulong disas_insn(CPUX86State *env, DisasContext *s, }/* Post-process prefixes. */ -if (prefixes &PREFIX_DATA ) { - dflag ^=1 ; - } -if (prefixes &PREFIX_ADR ) { - aflag ^=1 ; - } -#ifdef TARGET_X86_64 if (CODE64 (s)) { -if (rex_w ==1 ) { -/* 0x66 is ignored if rex.w is set */ - dflag =2 ; +/* In 64-bit mode, the default data size is 32-bit. Select 64-bit +data with rex_w, and 16-bit data with 0x66; rex_w takes precedence +over 0x66 if both are present. */ + dflag = (rex_w >0 ?2 : prefixes &PREFIX_DATA ?0 :1 ); +/* In 64-bit mode, 0x67 selects 32-bit addressing. */ + aflag = (prefixes &PREFIX_ADR ?1 :2 ); + }else { +/* In 16/32-bit mode, 0x66 selects the opposite data size. */ + dflag = s->code32; +if (prefixes &PREFIX_DATA ) { + dflag ^=1 ; } -if (!(prefixes &PREFIX_ADR )) { - aflag =2 ; +/* In 16/32-bit mode, 0x67 selects the opposite addressing. */ + aflag = s->code32; +if (prefixes &PREFIX_ADR ) { + aflag ^=1 ; } } -#endif s->prefix = prefixes; s->aflag = aflag;
Signature · 1 line
1.7.9.5
PATCH 26/26 q35: set fw_name
In reply to Michael RothFrom: "Michael S. Tsirkin" <[email protected]>
PCI host bridges need to set fw_name to be discoverable by bios for boot device selection.
In particular, seabios expects root device to be called "/pci/@i0cf8", so let's set it up like that for Q35.
--- hw/pci-host/q35.c | 1 + 1 file changed, 1 insertion(+)
hw/pci-host/q35.c +1 -0
@@ -76,6 +76,7 @@ static void q35_host_class_init(ObjectClass *klass, void *data) k->init = q35_host_init; dc->props = mch_props; + dc->fw_name ="pci" ; }static void q35_host_initfn (Object *obj)
Signature · 1 line
1.7.9.5
Quoted 3 lines · Michael Roth
Please respond here or CC [email protected] on any patches you think should be included in the release. The cut-off date is 2013-06-19 for new patches.
commit 293c51a6ee369228633a8428ab689f14c045ff98
Author: Stefan Hajnoczi <[email protected]> Date: Wed Jun 5 10:33:14 2013 +0200
blockdev: reset werror/rerror on drive_del
Il 12/06/2013 17:41, Michael Roth ha scritto:
Quoted 6 lines
Hi everyone,
The following new patches are queued for QEMU stable v1.5.1:
Quoted 7 lines
The release is planned for 2013-06-26:
http://wiki.qemu.org/Planning/1.5
Please respond here or CC [email protected] on any patches you think should be included in the release. The cut-off date is 2013-06-19 for new patches.
I'm going to send pull requests for SCSI and NBD on Monday, both of them will include 1.5.1 patches. Thanks!
Paolo
Quoted 106 lines
Testing/feedback is greatly appreciated.
Thanks!
----------------------------------------------------------------
Amos Kong (1):
qdev: fixget_fw_dev_pathto support to add nothing tofw_dev_pathAndreas Färber (1):
ide: Set BSY bit during FLUSHAneesh Kumar K.V (2):
hw/9pfs: Fix segfault with 9p2000.u
hw/9pfs: useO_NOFOLLOWfor mapped readlink operationBrad Smith (2):
Remove OSS support for OpenBSD
ui/gtk.c: Fix *BSD build of Gtk+ UICornelia Huck (2):
s390x/css: Fix concurrent sense.
virtio-ccw: Fix unsetting of indicators.Ed Maste (1):
host-libusb: Correct test for USB packet stateGerd Hoffmann (3):
chardev: fix "info chardev" output Revert "roms: switch oldnoconfig to olddefconfig" update seabios to release 1.7.2.2Luiz Capitulino (1):
target-i386: fix abort on bad PML4E/PDPTE/PDE/PTE addressesMichael Marineau (1):
Fix usage ofUSB_DEV_FLAG_IS_HOSTflag.Michael Roth (1):
qemu-char: don't issueCHR_EVENT_OPENin a BHMichael S. Tsirkin (1):
q35: setfw_namePaolo Bonzini (1):
do not check pointers after dereferencing themPeter Crosthwaite (1):
qom/object: Don't poll cast cache for NULL objectsRichard Henderson (1):
target-i386: Fix aflag logic for CODE64 and the 0x67 prefixStefan Hajnoczi (2):
rtl8139: flush queued packets when RxBufPtr is written
vmxnet3: fix NICState cleanupStefano Stabellini (4):
xen: simplifyxen_enabled
main_loop: do not set nonblocking ifxen_enabled()
xen_machine_pv: do not create a dummy CPU inmachine->init
xen: start PCI hole at0xe0000000(same aspc_init1and qemu-xen-traditional)Wendy Liang (1):
xilinx_axidma: Do not set DMA .notify to NULL after notifyaudio/ossaudio.c | 4 ---- backends/baum.c | 2 -- backends/msmouse.c | 1 + configure | 5 ++--- hw/9pfs/virtio-9p-local.c | 2 +- hw/9pfs/virtio-9p.c | 2 +- hw/core/qdev.c | 10 ++++++++- hw/dma/xilinx_axidma.c | 3 ++- hw/i386/pc_piix.c | 6 +++--- hw/i386/xen_machine_pv.c | 16 --------------- hw/ide/core.c | 1 + hw/net/rtl8139.c | 3 +++ hw/net/vmxnet3.c | 2 +- hw/pci-host/q35.c | 1 + hw/s390x/css.c | 2 +- hw/s390x/virtio-ccw.c | 8 ++++---- hw/usb/core.c | 2 +- hw/usb/host-libusb.c | 2 +- hw/virtio/virtio-bus.c | 6 ++++++ include/hw/i386/pc.h | 3 +++ include/hw/xen/xen.h | 4 ---- include/qemu-common.h | 1 + include/sysemu/char.h | 2 +- monitor.c | 2 +- pc-bios/bios.bin | Bin 131072 -> 131072 bytes qemu-char.c | 41 ++++++++++++++++++------------------- qom/object.c | 4 ++-- roms/configure-seabios.sh | 2 +- roms/seabios | 2 +- savevm.c | 8 ++++---- spice-qemu-char.c | 1 + target-i386/arch_memory_mapping.c | 10 +++++---- target-i386/translate.c | 30 +++++++++++++-------------- ui/console.c | 4 ++++ ui/gtk.c | 2 ++ vl.c | 2 +- xen-all.c | 12 +++++------ 37 files changed, 107 insertions(+), 101 deletions(-)
Quoted 6 lines · Michael Roth
Hi everyone,
The following new patches are queued for QEMU stable v1.5.1:
Quoted 7 lines
The release is planned for 2013-06-26:
http://wiki.qemu.org/Planning/1.5
Please respond here or CC [email protected] on any patches you think should be included in the release. The cut-off date is 2013-06-19 for new patches.
Hi,
I think "virtio-scsi: forward scsibus for virtio-scsi-pci." should be included.
I CC'ed [email protected] but I don't see it on the stable list. Did I make a mistake somewhere?
Thanks,
Fred
Quoted 106 lines
Testing/feedback is greatly appreciated.
Thanks!
----------------------------------------------------------------
Amos Kong (1):
qdev: fixget_fw_dev_pathto support to add nothing tofw_dev_pathAndreas Färber (1):
ide: Set BSY bit during FLUSHAneesh Kumar K.V (2):
hw/9pfs: Fix segfault with 9p2000.u hw/9pfs: useO_NOFOLLOWfor mapped readlink operationBrad Smith (2):
Remove OSS support for OpenBSD
ui/gtk.c: Fix *BSD build of Gtk+ UICornelia Huck (2):
s390x/css: Fix concurrent sense.
virtio-ccw: Fix unsetting of indicators.Ed Maste (1):
host-libusb: Correct test for USB packet stateGerd Hoffmann (3):
chardev: fix "info chardev" output Revert "roms: switch oldnoconfig to olddefconfig" update seabios to release 1.7.2.2Luiz Capitulino (1):
target-i386: fix abort on bad PML4E/PDPTE/PDE/PTE addressesMichael Marineau (1):
Fix usage ofUSB_DEV_FLAG_IS_HOSTflag.Michael Roth (1):
qemu-char: don't issueCHR_EVENT_OPENin a BHMichael S. Tsirkin (1):
q35: setfw_namePaolo Bonzini (1):
do not check pointers after dereferencing themPeter Crosthwaite (1):
qom/object: Don't poll cast cache for NULL objectsRichard Henderson (1):
target-i386: Fix aflag logic for CODE64 and the 0x67 prefixStefan Hajnoczi (2):
rtl8139: flush queued packets when RxBufPtr is written
vmxnet3: fix NICState cleanupStefano Stabellini (4):
xen: simplifyxen_enabled
main_loop: do not set nonblocking ifxen_enabled()
xen_machine_pv: do not create a dummy CPU inmachine->init
xen: start PCI hole at0xe0000000(same aspc_init1and qemu-xen-traditional)Wendy Liang (1):
xilinx_axidma: Do not set DMA .notify to NULL after notifyaudio/ossaudio.c | 4 ---- backends/baum.c | 2 -- backends/msmouse.c | 1 + configure | 5 ++--- hw/9pfs/virtio-9p-local.c | 2 +- hw/9pfs/virtio-9p.c | 2 +- hw/core/qdev.c | 10 ++++++++- hw/dma/xilinx_axidma.c | 3 ++- hw/i386/pc_piix.c | 6 +++--- hw/i386/xen_machine_pv.c | 16 --------------- hw/ide/core.c | 1 + hw/net/rtl8139.c | 3 +++ hw/net/vmxnet3.c | 2 +- hw/pci-host/q35.c | 1 + hw/s390x/css.c | 2 +- hw/s390x/virtio-ccw.c | 8 ++++---- hw/usb/core.c | 2 +- hw/usb/host-libusb.c | 2 +- hw/virtio/virtio-bus.c | 6 ++++++ include/hw/i386/pc.h | 3 +++ include/hw/xen/xen.h | 4 ---- include/qemu-common.h | 1 + include/sysemu/char.h | 2 +- monitor.c | 2 +- pc-bios/bios.bin | Bin 131072 -> 131072 bytes qemu-char.c | 41 ++++++++++++++++++------------------- qom/object.c | 4 ++-- roms/configure-seabios.sh | 2 +- roms/seabios | 2 +- savevm.c | 8 ++++---- spice-qemu-char.c | 1 + target-i386/arch_memory_mapping.c | 10 +++++---- target-i386/translate.c | 30 +++++++++++++-------------- ui/console.c | 4 ++++ ui/gtk.c | 2 ++ vl.c | 2 +- xen-all.c | 12 +++++------ 37 files changed, 107 insertions(+), 101 deletions(-)
Am 13.06.2013 14:27, schrieb Paolo Bonzini:
Quoted 9 lines
Il 12/06/2013 17:41, Michael Roth ha scritto:
Quoted 8 lines
Hi everyone,
The following new patches are queued for QEMU stable v1.5.1:
https://github.com/mdroth/qemu/commits/stable-1.5-staging
The release is planned for 2013-06-26:
Quoted 8 lines
Quoted 5 lines
http://wiki.qemu.org/Planning/1.5
Please respond here or CC [email protected] on any patches you think should be included in the release. The cut-off date is 2013-06-19 for new patches.
I'm going to send pull requests for SCSI and NBD on Monday, both of them will include 1.5.1 patches. Thanks!
Ditto for my in-flight qom-cpu pull.
BTW v1.4.2 was still missing in qemu.git yesterday, is there a pull pending already?
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Quoted 8 lines · Michael Roth
Hi everyone,
The following new patches are queued for QEMU stable v1.5.1:
https://github.com/mdroth/qemu/commits/stable-1.5-staging
The release is planned for 2013-06-26:
Quoted 7 lines
http://wiki.qemu.org/Planning/1.5
Please respond here or CC [email protected] on any patches you think should be included in the release. The cut-off date is 2013-06-19 for new patches.
Testing/feedback is greatly appreciated.
And it seems you forget "virtio-rng: Fix crash with non-default backend". You said you'll pick it up for 1.5.1 ;)
Fred
Quoted 104 lines
Thanks!
----------------------------------------------------------------
Amos Kong (1):
qdev: fixget_fw_dev_pathto support to add nothing tofw_dev_pathAndreas Färber (1):
ide: Set BSY bit during FLUSHAneesh Kumar K.V (2):
hw/9pfs: Fix segfault with 9p2000.u hw/9pfs: useO_NOFOLLOWfor mapped readlink operationBrad Smith (2):
Remove OSS support for OpenBSD
ui/gtk.c: Fix *BSD build of Gtk+ UICornelia Huck (2):
s390x/css: Fix concurrent sense.
virtio-ccw: Fix unsetting of indicators.Ed Maste (1):
host-libusb: Correct test for USB packet stateGerd Hoffmann (3):
chardev: fix "info chardev" output Revert "roms: switch oldnoconfig to olddefconfig" update seabios to release 1.7.2.2Luiz Capitulino (1):
target-i386: fix abort on bad PML4E/PDPTE/PDE/PTE addressesMichael Marineau (1):
Fix usage ofUSB_DEV_FLAG_IS_HOSTflag.Michael Roth (1):
qemu-char: don't issueCHR_EVENT_OPENin a BHMichael S. Tsirkin (1):
q35: setfw_namePaolo Bonzini (1):
do not check pointers after dereferencing themPeter Crosthwaite (1):
qom/object: Don't poll cast cache for NULL objectsRichard Henderson (1):
target-i386: Fix aflag logic for CODE64 and the 0x67 prefixStefan Hajnoczi (2):
rtl8139: flush queued packets when RxBufPtr is written
vmxnet3: fix NICState cleanupStefano Stabellini (4):
xen: simplifyxen_enabled
main_loop: do not set nonblocking ifxen_enabled()
xen_machine_pv: do not create a dummy CPU inmachine->init
xen: start PCI hole at0xe0000000(same aspc_init1and qemu-xen-traditional)Wendy Liang (1):
xilinx_axidma: Do not set DMA .notify to NULL after notifyaudio/ossaudio.c | 4 ---- backends/baum.c | 2 -- backends/msmouse.c | 1 + configure | 5 ++--- hw/9pfs/virtio-9p-local.c | 2 +- hw/9pfs/virtio-9p.c | 2 +- hw/core/qdev.c | 10 ++++++++- hw/dma/xilinx_axidma.c | 3 ++- hw/i386/pc_piix.c | 6 +++--- hw/i386/xen_machine_pv.c | 16 --------------- hw/ide/core.c | 1 + hw/net/rtl8139.c | 3 +++ hw/net/vmxnet3.c | 2 +- hw/pci-host/q35.c | 1 + hw/s390x/css.c | 2 +- hw/s390x/virtio-ccw.c | 8 ++++---- hw/usb/core.c | 2 +- hw/usb/host-libusb.c | 2 +- hw/virtio/virtio-bus.c | 6 ++++++ include/hw/i386/pc.h | 3 +++ include/hw/xen/xen.h | 4 ---- include/qemu-common.h | 1 + include/sysemu/char.h | 2 +- monitor.c | 2 +- pc-bios/bios.bin | Bin 131072 -> 131072 bytes qemu-char.c | 41 ++++++++++++++++++------------------- qom/object.c | 4 ++-- roms/configure-seabios.sh | 2 +- roms/seabios | 2 +- savevm.c | 8 ++++---- spice-qemu-char.c | 1 + target-i386/arch_memory_mapping.c | 10 +++++---- target-i386/translate.c | 30 +++++++++++++-------------- ui/console.c | 4 ++++ ui/gtk.c | 2 ++ vl.c | 2 +- xen-all.c | 12 +++++------ 37 files changed, 107 insertions(+), 101 deletions(-)
Am 13.06.2013 14:44, schrieb Frederic Konrad:
Quoted 11 lines · Michael Roth
Quoted 10 lines
Hi everyone,
The following new patches are queued for QEMU stable v1.5.1:
https://github.com/mdroth/qemu/commits/stable-1.5-staging
The release is planned for 2013-06-26:
Quoted 8 lines
Quoted 5 lines
Please respond here or CC [email protected] on any patches you think should be included in the release. The cut-off date is 2013-06-19 for new patches.
Testing/feedback is greatly appreciated.
And it seems you forget "virtio-rng: Fix crash with non-default backend". You said you'll pick it up for 1.5.1 ;)
It's not yet committed to master, so cannot be cherry-picked into the queue yet. Waiting for it myself. ;)
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Quoted 16 lines · Andreas Färber
Am 13.06.2013 14:44, schrieb Frederic Konrad:
Quoted 15 lines · Michael Roth
Quoted 14 lines
Hi everyone,
The following new patches are queued for QEMU stable v1.5.1:
https://github.com/mdroth/qemu/commits/stable-1.5-staging
The release is planned for 2013-06-26:
http://wiki.qemu.org/Planning/1.5
Please respond here or CC [email protected] on any patches you think should be included in the release. The cut-off date is 2013-06-19 for new patches.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Testing/feedback is greatly appreciated.
And it seems you forget "virtio-rng: Fix crash with non-default backend". You said you'll pick it up for 1.5.1 ;)
It's not yet committed to master, so cannot be cherry-picked into the queue yet. Waiting for it myself. ;)
Andreas
Oh ok, so it need to be in master for being merged in stable?
I didn't know that ;)
Fred
Quoted 16 lines · Andreas Färber
Am 13.06.2013 14:27, schrieb Paolo Bonzini:
Quoted 15 lines
Il 12/06/2013 17:41, Michael Roth ha scritto:
Quoted 13 lines
Hi everyone,
The following new patches are queued for QEMU stable v1.5.1:
https://github.com/mdroth/qemu/commits/stable-1.5-staging
The release is planned for 2013-06-26:
http://wiki.qemu.org/Planning/1.5
Please respond here or CC [email protected] on any patches you think should be included in the release. The cut-off date is 2013-06-19 for new patches.
Quoted 7 lines
Quoted 2 lines
I'm going to send pull requests for SCSI and NBD on Monday, both of them will include 1.5.1 patches. Thanks!
Ditto for my in-flight qom-cpu pull.
BTW v1.4.2 was still missing in qemu.git yesterday, is there a pull pending already?
Hmm, yah, it's pushed/tagging in the 1.4 repo:
http://git.qemu.org/?p=qemu-stable-1.4.git;a=commit;h=89400a80f5827ae3696e3da73df0996154965a0a
Anthony, do you still need to pull 1.4.2 into qemu.git?
Quoted 7 lines
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Quoted 18 lines · Frederic Konrad
Quoted 17 lines · Andreas Färber
Am 13.06.2013 14:44, schrieb Frederic Konrad:
Quoted 16 lines · Michael Roth
Quoted 15 lines
Hi everyone,
The following new patches are queued for QEMU stable v1.5.1:
https://github.com/mdroth/qemu/commits/stable-1.5-staging
The release is planned for 2013-06-26:
http://wiki.qemu.org/Planning/1.5
Please respond here or CC [email protected] on any patches you think should be included in the release. The cut-off date is 2013-06-19 for new patches.
Testing/feedback is greatly appreciated.
Quoted 8 lines
Quoted 7 lines
Quoted 2 lines
And it seems you forget "virtio-rng: Fix crash with non-default backend". You said you'll pick it up for 1.5.1 ;)
It's not yet committed to master, so cannot be cherry-picked into the queue yet. Waiting for it myself. ;)
Andreas
Oh ok, so it need to be in master for being merged in stable?
Yes. There are exceptions in rare cases (such as preventing WW3), but for the most part we need patches to get the full scrutiny of going through upstream review process before we pull them into a stable branch.
Same reason why:
"virtio-scsi: forward scsibus for virtio-scsi-pci"
isn't in yet. If you're targeting a patch for a stable release and think it may not make it upstream in time consider pinging the respective maintainers if it's had enough time for review.
Quoted 5 lines
I didn't know that ;)
Fred
Quoted 12 lines · Andreas Färber
Am 13.06.2013 14:27, schrieb Paolo Bonzini:
Quoted 11 lines
Il 12/06/2013 17:41, Michael Roth ha scritto:
Quoted 10 lines
Hi everyone,
The following new patches are queued for QEMU stable v1.5.1:
https://github.com/mdroth/qemu/commits/stable-1.5-staging
The release is planned for 2013-06-26:
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Please respond here or CC [email protected] on any patches you think should be included in the release. The cut-off date is 2013-06-19 for new patches.
I'm going to send pull requests for SCSI and NBD on Monday, both of them will include 1.5.1 patches. Thanks!
Ditto for my in-flight qom-cpu pull.
I'm planning on pulling in these:
pc: Fix crash when attempting to hotplug CPU with negative ID
target-i386: cpu: Fix potential buffer overrun in get_register_name_32()
Were there any others from that PULL?
Quoted 10 lines
BTW v1.4.2 was still missing in qemu.git yesterday, is there a pull pending already?
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Quoted 5 lines · Michael Roth
Hi everyone,
The following new patches are queued for QEMU stable v1.5.1:
Repo updated with everything I'm tracking that's been committed so far.
As far as I'm aware there are also the patches in Paolo's upcoming scsi pull, and the following that haven't yet been applied:
wdt_i6300esb: fix vmstate versioning
virtio-rng: Fix crash with non-default backend
virtio-scsi: forward scsibus for virtio-scsi-pci
ppc: do not register IABR SPR twice for 603e
savevm: avoid leaking popen(3) file pointer
raw-posix: Fix /dev/cdrom magic on OS X s390/virtio-ccw: Fix virtio reset 390/ipl: Fix boot order
Freeze is EOD Wednesday so please work with the respective maintainers to get these upstream if you're targetting anything for 1.5.1.
Quoted 112 lines
The release is planned for 2013-06-26:
http://wiki.qemu.org/Planning/1.5
Please respond here or CC [email protected] on any patches you think should be included in the release. The cut-off date is 2013-06-19 for new patches.
Quoted 1 line
Testing/feedback is greatly appreciated.
Thanks!
----------------------------------------------------------------
Amos Kong (1):
qdev: fixget_fw_dev_pathto support to add nothing tofw_dev_pathAndreas Färber (1):
ide: Set BSY bit during FLUSHAneesh Kumar K.V (2):
hw/9pfs: Fix segfault with 9p2000.u
hw/9pfs: useO_NOFOLLOWfor mapped readlink operationBrad Smith (2):
Remove OSS support for OpenBSD
ui/gtk.c: Fix *BSD build of Gtk+ UICornelia Huck (2):
s390x/css: Fix concurrent sense.
virtio-ccw: Fix unsetting of indicators.Ed Maste (1):
host-libusb: Correct test for USB packet stateGerd Hoffmann (3):
chardev: fix "info chardev" output Revert "roms: switch oldnoconfig to olddefconfig" update seabios to release 1.7.2.2Luiz Capitulino (1):
target-i386: fix abort on bad PML4E/PDPTE/PDE/PTE addressesMichael Marineau (1):
Fix usage ofUSB_DEV_FLAG_IS_HOSTflag.Michael Roth (1):
qemu-char: don't issueCHR_EVENT_OPENin a BHMichael S. Tsirkin (1):
q35: setfw_namePaolo Bonzini (1):
do not check pointers after dereferencing themPeter Crosthwaite (1):
qom/object: Don't poll cast cache for NULL objectsRichard Henderson (1):
target-i386: Fix aflag logic for CODE64 and the 0x67 prefixStefan Hajnoczi (2):
rtl8139: flush queued packets when RxBufPtr is written
vmxnet3: fix NICState cleanupStefano Stabellini (4):
xen: simplifyxen_enabled
main_loop: do not set nonblocking ifxen_enabled()
xen_machine_pv: do not create a dummy CPU inmachine->init
xen: start PCI hole at0xe0000000(same aspc_init1and qemu-xen-traditional)Wendy Liang (1):
xilinx_axidma: Do not set DMA .notify to NULL after notifyaudio/ossaudio.c | 4 ---- backends/baum.c | 2 -- backends/msmouse.c | 1 + configure | 5 ++--- hw/9pfs/virtio-9p-local.c | 2 +- hw/9pfs/virtio-9p.c | 2 +- hw/core/qdev.c | 10 ++++++++- hw/dma/xilinx_axidma.c | 3 ++- hw/i386/pc_piix.c | 6 +++--- hw/i386/xen_machine_pv.c | 16 --------------- hw/ide/core.c | 1 + hw/net/rtl8139.c | 3 +++ hw/net/vmxnet3.c | 2 +- hw/pci-host/q35.c | 1 + hw/s390x/css.c | 2 +- hw/s390x/virtio-ccw.c | 8 ++++---- hw/usb/core.c | 2 +- hw/usb/host-libusb.c | 2 +- hw/virtio/virtio-bus.c | 6 ++++++ include/hw/i386/pc.h | 3 +++ include/hw/xen/xen.h | 4 ---- include/qemu-common.h | 1 + include/sysemu/char.h | 2 +- monitor.c | 2 +- pc-bios/bios.bin | Bin 131072 -> 131072 bytes qemu-char.c | 41 ++++++++++++++++++------------------- qom/object.c | 4 ++-- roms/configure-seabios.sh | 2 +- roms/seabios | 2 +- savevm.c | 8 ++++---- spice-qemu-char.c | 1 + target-i386/arch_memory_mapping.c | 10 +++++---- target-i386/translate.c | 30 +++++++++++++-------------- ui/console.c | 4 ++++ ui/gtk.c | 2 ++ vl.c | 2 +- xen-all.c | 12 +++++------ 37 files changed, 107 insertions(+), 101 deletions(-)
Quoted 21 lines · mdroth
Quoted 5 lines · Michael Roth
Hi everyone,
The following new patches are queued for QEMU stable v1.5.1:
Repo updated with everything I'm tracking that's been committed so far.
As far as I'm aware there are also the patches in Paolo's upcoming scsi pull, and the following that haven't yet been applied:
wdt_i6300esb: fix vmstate versioning
virtio-rng: Fix crash with non-default backend
virtio-scsi: forward scsibus for virtio-scsi-pci
ppc: do not register IABR SPR twice for 603e
savevm: avoid leaking popen(3) file pointer
raw-posix: Fix/dev/cdrommagic on OS X s390/virtio-ccw: Fix virtio reset 390/ipl: Fix boot order
Quoted 2 lines
Freeze is EOD Wednesday so please work with the respective maintainers to get these upstream if you're targetting anything for 1.5.1.
Anton's tcg/ppc64 patch set ought to go to 1.5.1. It was merged to mainline today; the patches from the pull request were cc'd to qemu-stable.
r~
Quoted 22 lines · Richard Henderson
Quoted 21 lines · mdroth
Quoted 5 lines · Michael Roth
Hi everyone,
The following new patches are queued for QEMU stable v1.5.1:
Repo updated with everything I'm tracking that's been committed so far.
As far as I'm aware there are also the patches in Paolo's upcoming scsi pull, and the following that haven't yet been applied:
wdt_i6300esb: fix vmstate versioning
virtio-rng: Fix crash with non-default backend
virtio-scsi: forward scsibus for virtio-scsi-pci
ppc: do not register IABR SPR twice for 603e
savevm: avoid leaking popen(3) file pointer
raw-posix: Fix/dev/cdrommagic on OS X s390/virtio-ccw: Fix virtio reset 390/ipl: Fix boot order
Quoted 5 lines
Quoted 2 lines
Freeze is EOD Wednesday so please work with the respective maintainers to get these upstream if you're targetting anything for 1.5.1.
Anton's tcg/ppc64 patch set ought to go to 1.5.1. It was merged to mainline today; the patches from the pull request were cc'd to qemu-stable.
The emails were still were trickling into qemu-stable out of order when I sent that for some reason, so I only had 2-4 of that pull when I sent my last email.
When 1/4 finally landed I went ahead and rebased/re-applied them all in order so they should all be there now.
Quoted 4 lines
r~
Re: [Qemu-devel] [PATCH 09/26] ide: Set BSY bit during FLUSH
In reply to Michael RothQuoted 29 lines · Michael Roth
From: Andreas Färber <[email protected]>
The implementation of the ATA FLUSH command invokes a flush at the block layer, which may on raw files on POSIX entail a synchronous
fdatasync(). This may in some cases take so long that the SLES 11 SP1 guest driver reports I/O errors and filesystems get corrupted or remounted read-only.Avoid this by setting
BUSY_STAT, so that the guest is made aware we are in the middle of an operation and no ATA commands are attempted to be processed concurrently.Addresses BNC#637297.
Suggested-by Gonglei (Arei) <[email protected]>Signed-off-by Andreas Färber <[email protected]>Signed-off-by Kevin Wolf <[email protected]>Signed-off-by Stefan Hajnoczi <[email protected]>(cherry picked from commit f68ec8379e88502b4841a110c070e9b118d3151c)Signed-off-by Michael Roth <[email protected]>--- hw/ide/core.c | 1 + 1 file changed, 1 insertion(+)hw/ide/core.c +0
-0
hw/ide/core.c void ide_flush_cache(IDEState *s) · line 820
Quoted 7 lines
hw/ide/core.c +1
-0@@ -814,6 +814,7 @@ void ide_flush_cache(IDEState *s)return ; } + s->status |=BUSY_STAT ;bdrv_acct_start (s->bs, &s->acct,0 ,BDRV_ACCT_FLUSH );bdrv_aio_flush (s->bs, ide_flush_cb, s); }
This caused a regression for me from 1.5.0->1.5.1. Windows 7 x64 no longer boots on q35 IDE with this change. Thanks,
Alex
Re: [Qemu-devel] [PATCH 09/26] ide: Set BSY bit during FLUSH
Quoted 33 lines · Alex Williamson
Quoted 32 lines · Michael Roth
From: Andreas Färber <[email protected]>
The implementation of the ATA FLUSH command invokes a flush at the block layer, which may on raw files on POSIX entail a synchronous
fdatasync(). This may in some cases take so long that the SLES 11 SP1 guest driver reports I/O errors and filesystems get corrupted or remounted read-only.Avoid this by setting
BUSY_STAT, so that the guest is made aware we are in the middle of an operation and no ATA commands are attempted to be processed concurrently.Addresses BNC#637297.
Suggested-by Gonglei (Arei) <[email protected]>Signed-off-by Andreas Färber <[email protected]>Signed-off-by Kevin Wolf <[email protected]>Signed-off-by Stefan Hajnoczi <[email protected]>(cherry picked from commit f68ec8379e88502b4841a110c070e9b118d3151c)Signed-off-by Michael Roth <[email protected]>--- hw/ide/core.c | 1 + 1 file changed, 1 insertion(+)hw/ide/core.c +0
-0@@ -814,6 +814,7 @@ void ide_flush_cache(IDEState *s)return ; }
Quoted 7 lines
hw/ide/core.c void ide_flush_cache(IDEState *s) · line 820
Quoted 4 lines
hw/ide/core.c +1
-0+ s->status |=BUSY_STAT ;bdrv_acct_start (s->bs, &s->acct,0 ,BDRV_ACCT_FLUSH );bdrv_aio_flush (s->bs, ide_flush_cb, s); }This caused a regression for me from 1.5.0->1.5.1. Windows 7 x64 no longer boots on q35 IDE with this change. Thanks,
Are you seeing the issue for upstream builds as well?
Quoted 3 lines
Alex
Re: [Qemu-devel] [PATCH 09/26] ide: Set BSY bit during FLUSH
Quoted 43 lines · Michael Roth
Quoted 33 lines · Alex Williamson
Quoted 32 lines · Michael Roth
From: Andreas Färber <[email protected]>
The implementation of the ATA FLUSH command invokes a flush at the block layer, which may on raw files on POSIX entail a synchronous
fdatasync(). This may in some cases take so long that the SLES 11 SP1 guest driver reports I/O errors and filesystems get corrupted or remounted read-only.Avoid this by setting
BUSY_STAT, so that the guest is made aware we are in the middle of an operation and no ATA commands are attempted to be processed concurrently.Addresses BNC#637297.
Suggested-by Gonglei (Arei) <[email protected]>Signed-off-by Andreas Färber <[email protected]>Signed-off-by Kevin Wolf <[email protected]>Signed-off-by Stefan Hajnoczi <[email protected]>(cherry picked from commit f68ec8379e88502b4841a110c070e9b118d3151c)Signed-off-by Michael Roth <[email protected]>--- hw/ide/core.c | 1 + 1 file changed, 1 insertion(+)hw/ide/core.c +0
-0@@ -814,6 +814,7 @@ void ide_flush_cache(IDEState *s)return ; }Quoted 7 lines
hw/ide/core.c void ide_flush_cache(IDEState *s) · line 820
Quoted 4 lines
hw/ide/core.c +1
-0+ s->status |=BUSY_STAT ;bdrv_acct_start (s->bs, &s->acct,0 ,BDRV_ACCT_FLUSH );bdrv_aio_flush (s->bs, ide_flush_cb, s); }This caused a regression for me from 1.5.0->1.5.1. Windows 7 x64 no longer boots on q35 IDE with this change. Thanks,
Quoted 1 line
Are you seeing the issue for upstream builds as well?
Yes, I bisected this on upstream. If i revert just this from 1.5.1, I can boot again. Upstream requires reverting this and a workaround for 9afce429. Thanks,
Alex
Re: [Qemu-devel] [PATCH 09/26] ide: Set BSY bit during FLUSH
Quoting Alex Williamson (2013-07-03 16:51:56)
Quoted 44 lines · Michael Roth
Quoted 43 lines
Quoted 40 lines · Alex Williamson
Quoted 29 lines · Michael Roth
From: Andreas Färber <[email protected]>
The implementation of the ATA FLUSH command invokes a flush at the block layer, which may on raw files on POSIX entail a synchronous
fdatasync(). This may in some cases take so long that the SLES 11 SP1 guest driver reports I/O errors and filesystems get corrupted or remounted read-only.Avoid this by setting
BUSY_STAT, so that the guest is made aware we are in the middle of an operation and no ATA commands are attempted to be processed concurrently.Addresses BNC#637297.
Suggested-by Gonglei (Arei) <[email protected]>Signed-off-by Andreas Färber <[email protected]>Signed-off-by Kevin Wolf <[email protected]>Signed-off-by Stefan Hajnoczi <[email protected]>(cherry picked from commit f68ec8379e88502b4841a110c070e9b118d3151c)Signed-off-by Michael Roth <[email protected]>--- hw/ide/core.c | 1 + 1 file changed, 1 insertion(+)hw/ide/core.c +0
-0hw/ide/core.c void ide_flush_cache(IDEState *s) · line 820
Quoted 7 lines
hw/ide/core.c +1
-0@@ -814,6 +814,7 @@ void ide_flush_cache(IDEState *s)return ; } + s->status |=BUSY_STAT ;bdrv_acct_start (s->bs, &s->acct,0 ,BDRV_ACCT_FLUSH );bdrv_aio_flush (s->bs, ide_flush_cb, s); }This caused a regression for me from 1.5.0->1.5.1. Windows 7 x64 no longer boots on q35 IDE with this change. Thanks,
Quoted 5 lines
Quoted 1 line
Are you seeing the issue for upstream builds as well?
Yes, I bisected this on upstream. If i revert just this from 1.5.1, I can boot again. Upstream requires reverting this and a workaround for
9afce429. Thanks,
Does the problem still exist upstream? I'd rather not revert without a fix for the issue in 9afce429 since that might cause a regression for 1.5.1 users now.
Sucks either way but I think it's safer to have Win7 not boot on q35 than re-introduce potential image corruption.
Quoted 2 lines
Alex
Re: [Qemu-devel] [PATCH 09/26] ide: Set BSY bit during FLUSH
Quoting Michael Roth (2013-08-12 17:43:00)
Quoted 47 lines
Quoting Alex Williamson (2013-07-03 16:51:56)
Quoted 46 lines · Michael Roth
Quoted 44 lines
Quoted 33 lines · Alex Williamson
Quoted 32 lines · Michael Roth
From: Andreas Färber <[email protected]>
The implementation of the ATA FLUSH command invokes a flush at the block layer, which may on raw files on POSIX entail a synchronous
fdatasync(). This may in some cases take so long that the SLES 11 SP1 guest driver reports I/O errors and filesystems get corrupted or remounted read-only.Avoid this by setting
BUSY_STAT, so that the guest is made aware we are in the middle of an operation and no ATA commands are attempted to be processed concurrently.Addresses BNC#637297.
Suggested-by Gonglei (Arei) <[email protected]>Signed-off-by Andreas Färber <[email protected]>Signed-off-by Kevin Wolf <[email protected]>Signed-off-by Stefan Hajnoczi <[email protected]>(cherry picked from commit f68ec8379e88502b4841a110c070e9b118d3151c)Signed-off-by Michael Roth <[email protected]>--- hw/ide/core.c | 1 + 1 file changed, 1 insertion(+)hw/ide/core.c +0
-0@@ -814,6 +814,7 @@ void ide_flush_cache(IDEState *s)return ; }Quoted 7 lines
hw/ide/core.c void ide_flush_cache(IDEState *s) · line 820
Quoted 4 lines
hw/ide/core.c +1
-0+ s->status |=BUSY_STAT ;bdrv_acct_start (s->bs, &s->acct,0 ,BDRV_ACCT_FLUSH );bdrv_aio_flush (s->bs, ide_flush_cb, s); }This caused a regression for me from 1.5.0->1.5.1. Windows 7 x64 no longer boots on q35 IDE with this change. Thanks,
Are you seeing the issue for upstream builds as well?
Quoted 7 lines
Quoted 3 lines
Yes, I bisected this on upstream. If i revert just this from 1.5.1, I can boot again. Upstream requires reverting this and a workaround for
9afce429. Thanks,Does the problem still exist upstream? I'd rather not revert without a fix for the issue in
9afce429since that might cause a regression for 1.5.1 users now.
Ok, looks like we have a fix for this that was already sent to stable:
a62eaa26c1d6d48fbdc3ac1d32bd1314f5fdc8c9
Could've sworn I searched master for a reference to f68ec837...
Will pull it in for 1.5.3
Quoted 6 lines
Sucks either way but I think it's safer to have Win7 not boot on q35 than re-introduce potential image corruption.
Quoted 2 lines
Alex