Re: [Qemu-devel] [RFC] alpha qemu arithmetic exceptions

2014-07-08 Thread Richard Henderson
On 07/07/2014 09:20 PM, Al Viro wrote: and I'm reasonably sure that this is what they did internally. You are proposing to do 4 cases in all their messy glory in qemu itself... Yes. Primarily because we *have* to do so for the linux-user case. And that's not even going into generating the

Re: [Qemu-devel] [RFC PATCH 00/11] Adding FreeBSD's Capsicum security framework (part 1)

2014-07-08 Thread Alexei Starovoitov
On Mon, Jul 7, 2014 at 5:20 AM, Paolo Bonzini pbonz...@redhat.com wrote: Il 07/07/2014 12:29, David Drysdale ha scritto: I think that's more easily done by opening the file as O_RDONLY/O_WRONLY /O_RDWR. You could do it by running the file descriptor's seccomp-bpf program once per iocb with

Re: [Qemu-devel] [PATCH 14/15] target-tricore: Add instructions of SLR, SSRO and SRO opcode format

2014-07-08 Thread Richard Henderson
On 07/07/2014 11:13 AM, Bastian Koppelmann wrote: Add instructions of SLR, SSRO and SRO opcode format. All of my previous comments re memory accesses apply. r~

Re: [Qemu-devel] [PATCH] oslib-posix: Fix new compiler error with -Wclobbered

2014-07-08 Thread Paolo Bonzini
Il 07/07/2014 21:29, Stefan Weil ha scritto: Am 24.06.2014 23:03, schrieb Paolo Bonzini: Il 24/06/2014 22:52, Stefan Weil ha scritto: Newer versions of gcc report a warning (or an error with -Werror) when compiler option -Wclobbered (or -Wextra) is active: util/oslib-posix.c:372:12: error:

Re: [Qemu-devel] [PATCH 15/15] target-tricore: Add instructions of SR opcode format

2014-07-08 Thread Richard Henderson
On 07/07/2014 11:13 AM, Bastian Koppelmann wrote: +static bool cdc_zero(TCState *tc) +{ +int i; +int cdc = tc-PSW MASK_PSW_CDC; +/* Returns TRUE if PSW.CDC.COUNT == 0 or if PSW.CDC == + 7'b111, otherwise returns FALSE. */ +if (cdc == 0x7f) { +return true;

Re: [Qemu-devel] [libvirt] Where to get precompiled qga-vss.dll from ?

2014-07-08 Thread Puneet Bakshi
​ Hi, [Rephrasing my earlier post with more clarity.] I need to work with guest-fsfreeze-* commands in Windows 2008 guest VM (Host is CentOS 6.4) to quisce the applications. *Windows 2008 Guest Machine* 1. Windows 2008 is running following services - QEMU Guest Agent - QEMU

Re: [Qemu-devel] [RFC] COLO HA Project proposal

2014-07-08 Thread Hongyang Yang
Hi Michael, Thank you for paying attention on this. On 07/08/2014 02:06 PM, Michael R. Hines wrote: On 07/03/2014 11:42 AM, Hongyang Yang wrote: I wonder if there is anyway to coordinate this between COLO, Michael Hines microcheckpointing and the two separate reverse-execution projects

[Qemu-devel] [PATCH v2 8/9] target-mips: add BadInstr and BadInstrP support

2014-07-08 Thread Leon Alrae
BadInstr Register (CP0 Register 8, Select 1) The BadInstr register is a read-only register that capture the most recent instruction which caused an exception. BadInstrP Register (CP0 Register 8, Select 2) The BadInstrP register contains the prior branch instruction, when the faulting instruction

[Qemu-devel] [PATCH v2 2/9] softmmu: provide softmmu access type enum

2014-07-08 Thread Leon Alrae
New MIPS features depend on the access type and enum is more convenient than using the numbers directly. Signed-off-by: Leon Alrae leon.al...@imgtec.com --- include/exec/cpu-common.h |6 ++ softmmu_template.h| 26 -- 2 files changed, 22 insertions(+), 10

[Qemu-devel] [Bug 1338957] [NEW] RFE: add an event to report block devices watermark

2014-07-08 Thread Francesco Romani
Public bug reported: Add an event to report if a block device usage exceeds a threshold. The threshold should be configurable with a monitor command. The event should report the affected block device. Additional useful information could be the offset of the highest sector , like in the

[Qemu-devel] [PATCH v2 6/9] target-mips: add new Read-Inhibit and Execute-Inhibit exceptions

2014-07-08 Thread Leon Alrae
An Execute-Inhibit exception occurs when the virtual address of an instruction fetch matches a TLB entry whose XI bit is set. This exception type can only occur if the XI bit is implemented within the TLB and is enabled, this is denoted by the PageGrain XIE bit. An Read-Inhibit exception occurs

[Qemu-devel] screen freezed for 2-3 minutes on spice connect on xen windows 7 domU's with qxl after save/restore

2014-07-08 Thread Fabio Fantoni
On xen 4.5 (tried with qemu 2.0.0/2.1-rc0, spice 0.12.5 and client with spice-gtk 0.23/0.25) windows 7 domUs with qxl vga works good as kvm except for one problem after xl save/restore, when after restore on spice client connect the domU's screen freezed for 2-3 minutes (and seems also

[Qemu-devel] [PATCH v2 7/9] target-mips: add TLBINV support

2014-07-08 Thread Leon Alrae
For Standard TLB configuration (Config.MT=1): TLBINV invalidates a set of TLB entries based on ASID. The virtual address is ignored in the entry match. TLB entries which have their G bit set to 1 are not modified. TLBINVF causes all entries to be invalidated. Note that this commit introduces

Re: [Qemu-devel] [PATCH v4] spapr: add uuid/host details to device tree

2014-07-08 Thread Alexander Graf
On 08.07.14 07:00, Nikunj A Dadhania wrote: Useful for identifying the guest/host uniquely within the guest. Adding following properties to the guest root node. vm,uuid - uuid of the guest host-model - Host model number host-serial - Host machine serial number hypervisor type - Tells its kvm

Re: [Qemu-devel] [RFC PATCH 1/5] bootindex: add *_boot_device_path function

2014-07-08 Thread ChenLiang
On 2014/7/8 16:33, Amos Kong wrote: On Mon, Jul 07, 2014 at 05:10:57PM +0800, arei.gong...@huawei.com wrote: From: Chenliang chenlian...@huawei.com Add del_boot_device_path and modify_boot_device_path. Device should be removed from boot device list by del_boot_device_path when device

[Qemu-devel] [Bug 1338277] Re: Ubuntu 14.04 + QEmu 2.0 + KSM = 1, makes Windows 2008 R2 guests to crash (BSOD)

2014-07-08 Thread Christopher M. Penalver
** Project changed: qemu = qemu (Ubuntu) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1338277 Title: Ubuntu 14.04 + QEmu 2.0 + KSM = 1, makes Windows 2008 R2 guests to crash (BSOD) Status in

Re: [Qemu-devel] [PULL 2.1 0/8] ppc patch queue 2014-07-08

2014-07-08 Thread Peter Maydell
On 8 July 2014 11:20, Alexander Graf ag...@suse.de wrote: Hi Peter, This is my latest bugfix queue for ppc for the 2.1 release. Please pull. Alex The following changes since commit 128f0e66149afb2dfc325dfd183aac345f417763: Merge remote-tracking branch

Re: [Qemu-devel] [PATCH] prepend the include path of libvixl header files

2014-07-08 Thread Peter Maydell
On 7 July 2014 16:25, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: Currently the Makefile of disas/libvixl appends -I$(SRC_PATH)/disas/libvixl to QEMU_CFLAGS. As a consequence C++ files that #include utils.h, such as disas/libvixl/a64/instructions-a64.cc, are going to look for

Re: [Qemu-devel] [PATCH 02/12] target-mips: update cpu_save/cpu_load to support KScratch registers

2014-07-08 Thread Leon Alrae
On 19/06/2014 18:43, Richard Henderson wrote: You must update CPU_SAVE_VERSION when you change the contents of the save data. For extra credit, consider updating target-mips to VMStateDescription structure(s). r~ v2 contains updated CPU_SAVE_VERSION. VMStateDescription structures

Re: [Qemu-devel] [PATCH] prepend the include path of libvixl header files

2014-07-08 Thread Stefano Stabellini
On Tue, 8 Jul 2014, Peter Maydell wrote: On 8 July 2014 12:55, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: Are you going to pick it up or do you want me to send a pull request? I'm going to put it in the target-arm pullreq I'm currently testing. Great, thanks!

Re: [Qemu-devel] [PATCH] Makefile: Don't build generated headers before Makefile is reread

2014-07-08 Thread Peter Maydell
On 4 July 2014 15:33, Peter Maydell peter.mayd...@linaro.org wrote: On 30 June 2014 13:09, Paolo Bonzini pbonz...@redhat.com wrote: Il 28/06/2014 18:59, Peter Maydell ha scritto: Having a direct dependency Makefile: $(GENERATED_HEADERS) can result in not-from-clean builds failing

Re: [Qemu-devel] [PATCH] prepend the include path of libvixl header files

2014-07-08 Thread Peter Maydell
On 8 July 2014 12:55, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: Are you going to pick it up or do you want me to send a pull request? I'm going to put it in the target-arm pullreq I'm currently testing. thanks -- PMM

[Qemu-devel] [Bug 1338277] Re: Ubuntu 14.04 + QEmu 2.0 + KSM = 1, makes Windows 2008 R2 guests to crash (BSOD)

2014-07-08 Thread Thiago Martins
** Description changed: Guys, I'm trying to run Windows 2008 as a QEmu guest on my Ubuntu 14.04 but, after lots of tests, I figured out that it doesn't work, QEmu makes Windows 2008 to crash, and it is not a Windows fault, I'm pretty sure that it is a QEmu bug. Lab environment

Re: [Qemu-devel] [PATCH v4] spapr: add uuid/host details to device tree

2014-07-08 Thread Nikunj A Dadhania
Alexander Graf ag...@suse.de writes: On 08.07.14 13:04, Nikunj A Dadhania wrote: Alexander Graf ag...@suse.de writes: On 08.07.14 07:00, Nikunj A Dadhania wrote: Useful for identifying the guest/host uniquely within the guest. Adding following properties to the guest root node. vm,uuid -

Re: [Qemu-devel] [PATCH v2 2/9] softmmu: provide softmmu access type enum

2014-07-08 Thread Peter Maydell
On 8 July 2014 08:57, Leon Alrae leon.al...@imgtec.com wrote: New MIPS features depend on the access type and enum is more convenient than using the numbers directly. Mmm, I've thought for a while it would be better to have this be an enum, but never got round to it. Signed-off-by: Leon Alrae

Re: [Qemu-devel] [RFC] alpha qemu arithmetic exceptions

2014-07-08 Thread Peter Maydell
On 8 July 2014 08:13, Al Viro v...@zeniv.linux.org.uk wrote: Actually, that's badly worded; what codepath ends up setting si_code on e.g. fp addition overflows? In system mode it's done by completion code in the kernel, but AFAICS in user mode there are only two places where it might happen -

[Qemu-devel] [PULL for-2.1 3/3] s390x/css: reflect cpa in scsw

2014-07-08 Thread Cornelia Huck
We neglected to update the the channel-program-address field of the scsw after completion of the start or the halt function: Fortunately, Linux didn't miss it so far. Let's update it for the cases where the cpa is expected to be valid; in some cases, the cpa is 'unpredictable', so we leave it

[Qemu-devel] [PULL for-2.1 2/3] pc-bios/s390-ccw: update binary

2014-07-08 Thread Cornelia Huck
Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com --- pc-bios/s390-ccw.img | Bin 17624 - 17752 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/pc-bios/s390-ccw.img b/pc-bios/s390-ccw.img index

[Qemu-devel] [Bug 1307473] Re: guest hang due to missing clock interrupt

2014-07-08 Thread Ondergetekende
Note that my list of affected nodes also include migrated VMs, so there are some false positives (VMs that came from an affected node). The affected VMs on node 1-8 all seem to be migrated from another node. -- You received this bug notification because you are a member of qemu- devel-ml, which

[Qemu-devel] [Bug 1307473] Re: guest hang due to missing clock interrupt

2014-07-08 Thread John Johansen
Ondergetekende, can you provide further details to why you believe Bug #1326367 is causing this? Would you be willing to test a 3.11.0-24-generic kernel (reported stable) + the futex fix, or a chosen stable version of the 3.13 or 3.15 kernel with just the futex fix. To verify that the futex fix is

Re: [Qemu-devel] [PATCH] Handle G_IO_HUP in tcp_chr_read for tcp chardev

2014-07-08 Thread Kirill Batuzov
On Mon, 7 Jul 2014, Nikolay Nikolaev wrote: On Tue, Jul 1, 2014 at 2:52 PM, Kirill Batuzov batuz...@ispras.ru wrote: Due to GLib limitations it is not possible to create several watches on one channel on Windows hosts. See bug #338943 in GNOME bugzilla for details:

Re: [Qemu-devel] [PATCH 7/7] hw/misc/platform_devices: Add platform_bus_base to PlatformDevtreeData

2014-07-08 Thread Alexander Graf
On 07.07.14 09:08, Eric Auger wrote: The base address of the platform bus sometimes is used to build the reg property. --- Actually I did not succeed in doing it another way with Calxeda xgmac. If someone knows how to do without, please advise. Not sure I understand. The regs properties

Re: [Qemu-devel] [PATCH 4/7] hw/arm/virt: Support dynamically spawned sysbus devices

2014-07-08 Thread Peter Maydell
On 8 July 2014 14:51, Alexander Graf ag...@suse.de wrote: On 07.07.14 09:08, Eric Auger wrote: +#define MACHVIRT_PLATFORM_BASE 0xa004000 That's an odd address for a 128MB window. Can you make it 128MB aligned? Maybe move the virtio region behind this one? I'd rather not move

Re: [Qemu-devel] [RFC PATCH 1/5] bootindex: add *_boot_device_path function

2014-07-08 Thread Amos Kong
On Mon, Jul 07, 2014 at 05:10:57PM +0800, arei.gong...@huawei.com wrote: From: Chenliang chenlian...@huawei.com Add del_boot_device_path and modify_boot_device_path. Device should be removed from boot device list by del_boot_device_path when device hotplug. modify_boot_device_path is used

Re: [Qemu-devel] [RFC PATCH v1 1/5] QEMUSizedBuffer/QEMUFile

2014-07-08 Thread Dr. David Alan Gilbert
* Eric Blake (ebl...@redhat.com) wrote: On 07/07/2014 11:18 AM, Sanidhya Kashyap wrote: From: Dr. David Alan Gilbert dgilb...@redhat.com You are attributing the patch to David... Using the patch of Stefan Berger for memory buffer based QEMUFile.

Re: [Qemu-devel] [PATCH] slirp: Give error message if hostfwd_add/remove for unrecognized vlan/stack

2014-07-08 Thread Peter Maydell
On 26 June 2014 13:35, Peter Maydell peter.mayd...@linaro.org wrote: On 16 June 2014 16:47, Peter Maydell peter.mayd...@linaro.org wrote: If the user specified a (vlan ID, slirp stack name) tuple in a monitor hostfwd_add/remove command and we can't find it, give the user an error message

Re: [Qemu-devel] [PATCH v5 30/30] spapr_hcall: Add address-translation-mode-on-interrupt resource in H_SET_MODE

2014-07-08 Thread Peter Maydell
On 4 June 2014 13:51, Alexey Kardashevskiy a...@ozlabs.ru wrote: This adds handling of the RESOURCE_ADDR_TRANS_MODE resource from the H_SET_MODE, for POWER8 (PowerISA 2.07) only. This defines AIL flags for LPCR special register. This changes @excp_prefix according to the mode, takes effect

Re: [Qemu-devel] [PATCH 01/12] target-mips: add KScratch registers

2014-07-08 Thread Leon Alrae
On 20/06/2014 23:02, Aurelien Jarno wrote: @@ -5198,6 +5199,12 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, int reg, int sel) gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_DESAVE)); rn = DESAVE; break; +case 2 ... 7: +

Re: [Qemu-devel] [PATCH v2 0/4] virtio-blk: fix issues with unified virtio-blk request handling

2014-07-08 Thread Stefan Hajnoczi
On Tue, Jul 1, 2014 at 5:25 PM, Stefan Hajnoczi stefa...@redhat.com wrote: This series fixes issues recently introduced when unifying virtio-blk dataplane's request handling with non-dataplane virtio-blk. The problems include broken memory allocation for dataplane requests and a performance

Re: [Qemu-devel] [PATCH v5 30/30] spapr_hcall: Add address-translation-mode-on-interrupt resource in H_SET_MODE

2014-07-08 Thread Alexander Graf
On 08.07.14 16:37, Peter Maydell wrote: On 4 June 2014 13:51, Alexey Kardashevskiy a...@ozlabs.ru wrote: This adds handling of the RESOURCE_ADDR_TRANS_MODE resource from the H_SET_MODE, for POWER8 (PowerISA 2.07) only. This defines AIL flags for LPCR special register. This changes

[Qemu-devel] [PATCH] add watermark reporting for block devices

2014-07-08 Thread Francesco Romani
Hello everyone I'm one of the oVirt developers (http://www.ovirt.org); oVirt is a virtualization management application built around qemu/kvm, so it is nice to get in touch :) We have begun a big scalability improvement effort, aiming to support without problems hundreds of VMs per host, with

[Qemu-devel] [PATCH] block: add watermark event

2014-07-08 Thread Francesco Romani
Managing applications, like oVirt (http://www.ovirt.org), make extensive use of thin-provisioned disk images. In order to let the guest run flawlessly and be not unnecessarily paused, oVirt sets a watermark based on the percentage occupation of the device against the advertised size, and

Re: [Qemu-devel] [PATCH 08/12] target-mips: add BadInstr and BadInstrP support

2014-07-08 Thread Leon Alrae
On 19/06/2014 23:13, Aurelien Jarno wrote: I don't think this should implemented that way, as it would have a significant impact on the performances. Given we have the fault address (we fill EPC), we can fetch the corresponding opcode. There might be some code change to do for the branches, so

[Qemu-devel] [RFC] add watermark reporting for block devices

2014-07-08 Thread Francesco Romani
Sorry, this is actually an RFC; patch was posted separately. - Original Message - From: Francesco Romani from...@redhat.com To: qemu-devel@nongnu.org Cc: kw...@redhat.com, stefa...@redhat.com, lcapitul...@redhat.com, mdr...@linux.vnet.ibm.com, Francesco Romani from...@redhat.com

Re: [Qemu-devel] [RFC] alpha qemu arithmetic exceptions

2014-07-08 Thread Richard Henderson
On 07/08/2014 01:05 AM, Peter Maydell wrote: On 8 July 2014 08:13, Al Viro v...@zeniv.linux.org.uk wrote: Actually, that's badly worded; what codepath ends up setting si_code on e.g. fp addition overflows? In system mode it's done by completion code in the kernel, but AFAICS in user mode

Re: [Qemu-devel] another locking issue in current dataplane code?

2014-07-08 Thread Christian Borntraeger
On 08/07/14 09:43, Ming Lei wrote: On Tue, Jul 8, 2014 at 3:19 PM, Christian Borntraeger borntrae...@de.ibm.com wrote: Ping. has anyone seen a similar hang on x86? The problem seems to be, that for managedsave, we do a VM stop before we call the migration_state_notifier. to be verified.

Re: [Qemu-devel] [RFC PATCH 1/5] bootindex: add *_boot_device_path function

2014-07-08 Thread Amos Kong
On Tue, Jul 08, 2014 at 01:22:53PM +, Gonglei (Arei) wrote: -Original Message- From: chenliang (T) Sent: Tuesday, July 08, 2014 7:03 PM To: Amos Kong Cc: Gonglei (Arei); qemu-devel@nongnu.org; afaer...@suse.de; ag...@suse.de; stefa...@redhat.com; a...@ozlabs.ru;

Re: [Qemu-devel] [RFC PATCH 00/11] Adding FreeBSD's Capsicum security framework (part 1)

2014-07-08 Thread Kees Cook
On Mon, Jul 7, 2014 at 3:33 PM, Alexei Starovoitov alexei.starovoi...@gmail.com wrote: On Mon, Jul 7, 2014 at 5:20 AM, Paolo Bonzini pbonz...@redhat.com wrote: Il 07/07/2014 12:29, David Drysdale ha scritto: I think that's more easily done by opening the file as O_RDONLY/O_WRONLY /O_RDWR.

[Qemu-devel] [PATCH 3/3] qtest: Adapt vhost-user-test to latehs vhost-user changes

2014-07-08 Thread Nikolay Nikolaev
A new field mmap_offset was added in the vhost-user message, we need to reflect this change in the test too. Signed-off-by: Nikolay Nikolaev n.nikol...@virtualopensystems.com --- tests/vhost-user-test.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git

Re: [Qemu-devel] [RFC] alpha qemu arithmetic exceptions

2014-07-08 Thread Al Viro
On Tue, Jul 08, 2014 at 07:54:36AM +0100, Al Viro wrote: On Mon, Jul 07, 2014 at 11:03:08PM -0700, Richard Henderson wrote: On 07/07/2014 09:20 PM, Al Viro wrote: and I'm reasonably sure that this is what they did internally. You are proposing to do 4 cases in all their messy glory in

Re: [Qemu-devel] [PATCH v2 8/9] target-mips: add BadInstr and BadInstrP support

2014-07-08 Thread James Hogan
Hi Leon, On 08/07/14 08:57, Leon Alrae wrote: BadInstr Register (CP0 Register 8, Select 1) The BadInstr register is a read-only register that capture the most recent instruction which caused an exception. BadInstrP Register (CP0 Register 8, Select 2) The BadInstrP register contains the

[Qemu-devel] [PATCH v2 9/9] target-mips: update cpu_save/cpu_load to support new registers

2014-07-08 Thread Leon Alrae
Signed-off-by: Leon Alrae leon.al...@imgtec.com --- target-mips/cpu.h |2 +- target-mips/machine.c | 14 ++ 2 files changed, 15 insertions(+), 1 deletions(-) diff --git a/target-mips/cpu.h b/target-mips/cpu.h index 656f5ca..23bb22c 100644 --- a/target-mips/cpu.h +++

[Qemu-devel] [for-2.1] hw/ppc/spapr_hcall.c: Add ULL suffix to 64 bit constant

2014-07-08 Thread Peter Maydell
Add ULL suffix to 64 bit constant to prevent compiler warnings on some 32 bit platforms. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- Planning to commit this to master as a buildfix for rc1. hw/ppc/spapr_hcall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Qemu-devel] [PATCH] hw/ppc/spapr_hcall.c: Fix typo in function names

2014-07-08 Thread Peter Maydell
Fix a typo in the names of a couple of functions (s/resouce/resource/). Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- Only a typo; I leave it up to you whether you want to put this in 2.1 or not, Alex, but anyway it doesn't need to go in rc1. hw/ppc/spapr_hcall.c | 22

[Qemu-devel] [PATCH 0/3] vhost-user fixes

2014-07-08 Thread Nikolay Nikolaev
The latest vhost-user changes changed the VHOST_SET_MEM_TABLE handling. Now the memory regions are mapped from dev-mem. The BIOS is registered at address 0xfffc which is out of memory boundaries for guests with less than 4G RAM. Calling qemu_get_ram_fd with this address causes abort() in

Re: [Qemu-devel] [Xen-devel] [v5][PATCH 0/5] xen: add Intel IGD passthrough support

2014-07-08 Thread Andrew Barnes
Hi, I've been working on IGD passthrough using native qemu and VFIO, (without any XEN components). This work hasn't progressed in recent, but I am able to continue it again. Late last year I was in discussions with Allen Kay, Vikas Shivappa from Intel and Alex Williamson from Redhat, which

Re: [Qemu-devel] [PATCH] block: add watermark event

2014-07-08 Thread Eric Blake
On 07/08/2014 08:49 AM, Francesco Romani wrote: Managing applications, like oVirt (http://www.ovirt.org), make extensive use of thin-provisioned disk images. In order to let the guest run flawlessly and be not unnecessarily paused, oVirt sets a watermark based on the percentage occupation of

Re: [Qemu-devel] [PATCH for 2.1 0/4] AioContext cleanups and optimizations

2014-07-08 Thread Kevin Wolf
Am 07.07.2014 um 15:18 hat Paolo Bonzini geschrieben: These patches do some cleanup and optimization in AioContext land. The first two drop AIO functions that operate on the main AioContext. These are not needed anymore now that each BlockDriverState explicitly operates on its own

Re: [Qemu-devel] [PATCH v2 0/4] virtio-blk: fix issues with unified virtio-blk request handling

2014-07-08 Thread Kevin Wolf
Am 08.07.2014 um 16:43 hat Stefan Hajnoczi geschrieben: On Tue, Jul 1, 2014 at 5:25 PM, Stefan Hajnoczi stefa...@redhat.com wrote: This series fixes issues recently introduced when unifying virtio-blk dataplane's request handling with non-dataplane virtio-blk. The problems include broken

[Qemu-devel] virtio + virtq + iommu

2014-07-08 Thread Anshul Makkar
Hi, Was tracing the buffer handling code flow after the kick has been initiated from the guest in case of virtio. Found this function cpu_physical_memory_map-address_space_map-address_space_translate which calls address_space_translate_internal and iommu-translate (get the translation from TLB)

[Qemu-devel] [PULL 3/3] target-arm: Implement vCPU reset via KVM_ARM_VCPU_INIT for 32-bit CPUs

2014-07-08 Thread Peter Maydell
Implement kvm_arm_vcpu_init() as a simple call to arm_arm_vcpu_init() (which uses the KVM_ARM_VCPU_INIT vcpu ioctl to tell the kernel to re-initialize the vCPU), rather than via the complicated code which saves a copy of the register state on first init and then writes it back to the kernel. This

[Qemu-devel] [PATCH for-2.1] pc: fix qemu exiting with error when -m X 128 with old machines types

2014-07-08 Thread Igor Mammedov
If machine doesn't support memory hotplug then staring QEMU with initial memory less than default will make QEMU exit with following error message: $QEMU -m 16 -M isapc qemu-system-i386: -memory 'slots|maxmem' is not supported by: isapc Set maxram_size to initial memory value before parsing

[Qemu-devel] live migration + licensing issue.

2014-07-08 Thread Anshul Makkar
Hi, In our data center we are using qemu 1.0/ 1.2 and we need to do a live migration to qemu 2.0. One of the main hindrance that we are facing is that QEMU 1.0 uses old PC model so if a user using Windows on the VM running on QEMU 1.0 does a live migrate to QEMU 2.0 , he will see a licensing

Re: [Qemu-devel] [RFC PATCH 1/5] bootindex: add *_boot_device_path function

2014-07-08 Thread Gonglei (Arei)
-Original Message- From: chenliang (T) Sent: Tuesday, July 08, 2014 7:03 PM To: Amos Kong Cc: Gonglei (Arei); qemu-devel@nongnu.org; afaer...@suse.de; ag...@suse.de; stefa...@redhat.com; a...@ozlabs.ru; alex.william...@redhat.com; arm...@redhat.com; ebl...@redhat.com;

[Qemu-devel] [PULL 7/8] target-ppc: Remove POWER7+ and POWER8E families

2014-07-08 Thread Alexander Graf
From: Alexey Kardashevskiy a...@ozlabs.ru POWER8E is architecturally equal to POWER8 and POWER7+ is equal to POWER7. Also no user space tool makes any difference for CPU node name in the device tree (such as PowerPC,POWER7@0 vs. PowerPC,POWER7+@0). So there is no point in emulating POWER7+ and

[Qemu-devel] [Bug 1307473] Re: guest hang due to missing clock interrupt

2014-07-08 Thread Ondergetekende
I'm not confident yet we're seeing the exact same problem, but it is pretty close. We're running a somewhat wide range of hyperisor kernels, these are our observations so far. node-1-1 3.13.0-24-generic is affected for 0% of vms node-1-3 3.13.0-24-generic is affected for 0% of vms node-1-5

[Qemu-devel] [PULL 4/8] PPC: Fix booke206 TLB with phys addrs 32bit

2014-07-08 Thread Alexander Graf
We were truncating physical addresses to 32bit when using qemu-system-ppc with a booke206 TLB implementation. This patch fixes that and makes the full address space available. Signed-off-by: Alexander Graf ag...@suse.de --- target-ppc/mmu_helper.c | 6 +++--- 1 file changed, 3 insertions(+), 3

Re: [Qemu-devel] [PATCH 12/15] target-tricore: Add instructions of SBR opcode format

2014-07-08 Thread Richard Henderson
On 07/07/2014 11:13 AM, Bastian Koppelmann wrote: Add instructions of SBR opcode format. Add gen_loop micro-op generator function. Signed-off-by: Bastian Koppelmann kbast...@mail.uni-paderborn.de --- target-tricore/translate.c | 69 ++ 1 file

Re: [Qemu-devel] [PATCH 5/7] hw/core/sysbus: add fdt_add_node method

2014-07-08 Thread Alexander Graf
On 07.07.14 09:08, Eric Auger wrote: This method is meant to be called on sysbus device dynamic instantiation (-device option). Devices that support this kind of instantiation must implement this method. Signed-off-by: Eric Auger eric.au...@linaro.org For the reason I stated earlier, I don't

[Qemu-devel] [PATCH] linux-aio: fix submit aio as a batch

2014-07-08 Thread Ming Lei
In the enqueue path, we can't complete request, otherwise Co-routine re-entered recursively may be caused, so this patch fixes the issue with below ideas: - for -EAGAIN, retry the submission in an introduced event handler - for part of completion, just update the io queue, since

[Qemu-devel] [PATCH v2 3/9] target-mips: distinguish between data load and instruction fetch

2014-07-08 Thread Leon Alrae
Signed-off-by: Leon Alrae leon.al...@imgtec.com --- target-mips/helper.c | 21 ++--- 1 files changed, 10 insertions(+), 11 deletions(-) diff --git a/target-mips/helper.c b/target-mips/helper.c index 8a997e4..9871273 100644 --- a/target-mips/helper.c +++ b/target-mips/helper.c

Re: [Qemu-devel] [PATCH 4/7] hw/arm/virt: Support dynamically spawned sysbus devices

2014-07-08 Thread Alexander Graf
On 07.07.14 09:08, Eric Auger wrote: Allows sysbus devices to be instantiated from command line by using -device option --- Inspired from what Alex Graf did in ppc e500 https://lists.gnu.org/archive/html/qemu-ppc/2014-07/msg00012.html Signed-off-by: Alexander Graf ag...@suse.de

Re: [Qemu-devel] another locking issue in current dataplane code?

2014-07-08 Thread Ming Lei
On Tue, Jul 8, 2014 at 3:19 PM, Christian Borntraeger borntrae...@de.ibm.com wrote: Ping. has anyone seen a similar hang on x86? On 07/07/14 13:58, Christian Borntraeger wrote: Folks, with current 2.1-rc0 ( + dataplane: do not free VirtQueueElement in vring_push() + virtio-blk: avoid

Re: [Qemu-devel] [PATCH 3/4] qed: Make qiov match request size until backing file EOF

2014-07-08 Thread Kevin Wolf
Am 05.07.2014 um 22:06 hat Max Reitz geschrieben: On 04.07.2014 17:55, Kevin Wolf wrote: If a QED image has a shorter backing file and a read request to unallocated clusters goes across EOF of the backing file, the backing file sees a shortened request and the rest is filled with zeros.

Re: [Qemu-devel] [PATCH 13/15] target-tricore: Add instructions of SC opcode format

2014-07-08 Thread Richard Henderson
On 07/07/2014 11:13 AM, Bastian Koppelmann wrote: +env-active_tc.ICR |= (const9 0xff); /* ICR.CCPN = const9[7: 0];*/ There's no reason not to perform this AND at translation time. r~

Re: [Qemu-devel] [for-2.1] hw/ppc/spapr_hcall.c: Add ULL suffix to 64 bit constant

2014-07-08 Thread Alexander Graf
On 08.07.14 17:01, Peter Maydell wrote: Add ULL suffix to 64 bit constant to prevent compiler warnings on some 32 bit platforms. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Alexander Graf ag...@suse.de Alex

[Qemu-devel] [PATCH v2 5/9] target-mips: update PageGrain and m{t, f}c0 EntryLo{0, 1}

2014-07-08 Thread Leon Alrae
PageGrain needs rw bitmask which differs between MIPS architectures. In pre-R6 if RIXI is supported, PageGrain.XIE and PageGrain.RIE are writeable, whereas in R6 they are read-only 1. Signed-off-by: Leon Alrae leon.al...@imgtec.com --- target-mips/cpu.h|4

Re: [Qemu-devel] [PATCH v2 2/9] softmmu: provide softmmu access type enum

2014-07-08 Thread Leon Alrae
Hi Peter, On 08/07/2014 14:00, Peter Maydell wrote: On 8 July 2014 08:57, Leon Alrae leon.al...@imgtec.com wrote: New MIPS features depend on the access type and enum is more convenient than using the numbers directly. Mmm, I've thought for a while it would be better to have this be an

Re: [Qemu-devel] [PATCH v2 2/9] softmmu: provide softmmu access type enum

2014-07-08 Thread Peter Maydell
On 8 July 2014 17:08, Leon Alrae leon.al...@imgtec.com wrote: I intentionally skipped this here to focus this patchset on the new features only. I also think that eventually we will have to update the prototypes and go through all the targets. Yeah, that's reasonable. If you make this a

Re: [Qemu-devel] live migration + licensing issue.

2014-07-08 Thread Andreas Färber
Hi, Am 08.07.2014 17:24, schrieb Anshul Makkar: In our data center we are using qemu 1.0/ 1.2 and we need to do a live migration to qemu 2.0. One of the main hindrance that we are facing is that QEMU 1.0 uses old PC model so if a user using Windows on the VM running on QEMU 1.0 does a live

Re: [Qemu-devel] [RFC] alpha qemu arithmetic exceptions

2014-07-08 Thread Peter Maydell
On 8 July 2014 17:13, Al Viro v...@zeniv.linux.org.uk wrote: On Tue, Jul 08, 2014 at 09:05:10AM +0100, Peter Maydell wrote: The code we have currently may well be buggy, but the correct It is ;-/ We set TARGET_FPE_FLTINV unconditionally there. BTW, what's the reason why all these

Re: [Qemu-devel] another locking issue in current dataplane code?

2014-07-08 Thread Christian Borntraeger
On 08/07/14 11:09, Christian Borntraeger wrote: On 08/07/14 09:43, Ming Lei wrote: On Tue, Jul 8, 2014 at 3:19 PM, Christian Borntraeger borntrae...@de.ibm.com wrote: Ping. has anyone seen a similar hang on x86? The problem seems to be, that for managedsave, we do a VM stop before we call

[Qemu-devel] [PULL 2.1 0/8] ppc patch queue 2014-07-08

2014-07-08 Thread Alexander Graf
Hi Peter, This is my latest bugfix queue for ppc for the 2.1 release. Please pull. Alex The following changes since commit 128f0e66149afb2dfc325dfd183aac345f417763: Merge remote-tracking branch 'remotes/afaerber/tags/prep-for-2.1' into staging (2014-07-07 19:06:55 +0100) are available in

[Qemu-devel] [PATCH v2 4/9] target-mips: add RI and XI fields to TLB entry

2014-07-08 Thread Leon Alrae
In Revision 3 of the architecture, the RI and XI bits were added to the TLB to enable more secure access of memory pages. These bits (along with the Dirty bit) allow the implementation of read-only, write-only, no-execute access policies for mapped pages. Signed-off-by: Leon Alrae

[Qemu-devel] [PULL 3/8] target-ppc: Fix gdbstub for ppc64le-linux-user

2014-07-08 Thread Alexander Graf
From: Richard Henderson r...@twiddle.net The bswap that's needed for system mode isn't required for user mode, and in fact breaks debugging. Signed-off-by: Richard Henderson r...@twiddle.net [agraf: fix apple gdbstub implementation] Signed-off-by: Alexander Graf ag...@suse.de ---

[Qemu-devel] [PULL 8/8] PPC: e500: Actually install u-boot.e500

2014-07-08 Thread Alexander Graf
From: Cole Robinson crobi...@redhat.com Signed-off-by: Cole Robinson crobi...@redhat.com Signed-off-by: Alexander Graf ag...@suse.de --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1eea0c4..d6b9dc1 100644 --- a/Makefile +++ b/Makefile

[Qemu-devel] [PATCH 037/156] virtio-net: out-of-bounds buffer write on load

2014-07-08 Thread Michael Roth
From: Michael S. Tsirkin m...@redhat.com CVE-2013-4149 QEMU 1.3.0 out-of-bounds buffer write in virtio_net_load()@hw/net/virtio-net.c } else if (n-mac_table.in_use) { uint8_t *buf = g_malloc0(n-mac_table.in_use); We are allocating buffer of size n-mac_table.in_use

[Qemu-devel] [PATCH 021/156] arm: translate.c: Fix smlald Instruction

2014-07-08 Thread Michael Roth
From: Peter Crosthwaite peter.crosthwa...@xilinx.com The smlald (and probably smlsld) instruction was doing incorrect sign extensions of the operands amongst 64bit result calculation. The instruction psuedo-code is: operand2 = if m_swap then ROR(R[m],16) else R[m]; product1 = SInt(R[n]15:0) *

[Qemu-devel] [PATCH 025/156] s390x: empty function stubs in preparation for __KVM_HAVE_GUEST_DEBUG

2014-07-08 Thread Michael Roth
From: David Hildenbrand d...@linux.vnet.ibm.com This patch creates empty function stubs (used by the gdbserver) in preparation for the hw debugging support by kvm on s390, which will enable the __KVM_HAVE_GUEST_DEBUG define in the linux headers and require these methods on the qemu side.

[Qemu-devel] [PATCH 013/156] mirror: fix early wake from sleep due to aio

2014-07-08 Thread Michael Roth
From: Stefan Hajnoczi stefa...@redhat.com The mirror blockjob coroutine rate-limits itself by sleeping. The coroutine also performs I/O asynchronously so it's important that the aio callback doesn't wake the coroutine early as that breaks rate-limiting. Reported-by: Joaquim Barrera

[Qemu-devel] [PATCH 036/156] virtio-net: out-of-bounds buffer write on invalid state load

2014-07-08 Thread Michael Roth
From: Michael S. Tsirkin m...@redhat.com CVE-2013-4150 QEMU 1.5.0 out-of-bounds buffer write in virtio_net_load()@hw/net/virtio-net.c This code is in hw/net/virtio-net.c: if (n-max_queues 1) { if (n-max_queues != qemu_get_be16(f)) { error_report(virtio-net: different

[Qemu-devel] [PATCH 024/156] s390x/helper: Added format control bit to MMU translation

2014-07-08 Thread Michael Roth
From: Thomas Huth th...@linux.vnet.ibm.com With the EDAT-1 facility, the MMU translation can stop at the segment table already, pointing to a 1 MB block. And while we're at it, move the page table entry handling to a separate function, too, as suggested by Alexander Graf. Acked-by: Alexander

[Qemu-devel] [PATCH 060/156] target-arm: Make vbar_write 64bit friendly on 32bit hosts

2014-07-08 Thread Michael Roth
From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com Reviewed-by: Alex Bennée alex.ben...@linaro.org Message-id: 1398926097-28097-2-git-send-email-edgar.igles...@gmail.com Signed-off-by: Peter Maydell peter.mayd...@linaro.org (cherry picked

[Qemu-devel] [PATCH 029/156] vmxnet3: validate queues configuration coming from guest

2014-07-08 Thread Michael Roth
From: Dmitry Fleytman dmi...@daynix.com CVE-2013-4544 Signed-off-by: Dmitry Fleytman dmi...@daynix.com Reported-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com Reviewed-by: Dr. David Alan Gilbert dgilb...@redhat.com Message-id:

[Qemu-devel] [PATCH 030/156] vmxnet3: validate interrupt indices read on migration

2014-07-08 Thread Michael Roth
From: Dmitry Fleytman dmi...@daynix.com CVE-2013-4544 Signed-off-by: Dmitry Fleytman dmi...@daynix.com Reported-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com Reviewed-by: Dr. David Alan Gilbert dgilb...@redhat.com Message-id:

[Qemu-devel] [PATCH 072/156] block/cloop: prevent offsets_size integer overflow (CVE-2014-0143)

2014-07-08 Thread Michael Roth
From: Stefan Hajnoczi stefa...@redhat.com The following integer overflow in offsets_size can lead to out-of-bounds memory stores when n_blocks has a huge value: uint32_t n_blocks, offsets_size; [...] ret = bdrv_pread(bs-file, 128 + 4, s-n_blocks, 4); [...] s-n_blocks =

[Qemu-devel] [PATCH 153/156] vnc: Fix tight_detect_smooth_image() for lossless case

2014-07-08 Thread Michael Roth
From: Markus Armbruster arm...@redhat.com VncTight member uint8_t quality is either (uint8_t)-1 for lossless or less than 10 for lossy. tight_detect_smooth_image() first promotes it to int, then compares with -1. Always unequal, so we always execute the lossy code. Reads beyond tight_conf[]

[Qemu-devel] [PATCH 144/156] coroutine-win32.c: Add noinline attribute to work around gcc bug

2014-07-08 Thread Michael Roth
From: Peter Maydell peter.mayd...@linaro.org A gcc codegen bug in x86_64-w64-mingw32-gcc (GCC) 4.6.3 means that non-debug builds of QEMU for Windows tend to assert when using coroutines. Work around this by marking qemu_coroutine_switch as noinline. If we allow gcc to inline

[Qemu-devel] [PATCH] ui/gtk: Restore keyboard focus after Page change

2014-07-08 Thread John Snow
In the GTK UI, after changing focus to the qemu monitor Notebook Page, when restoring focus to the virtual machine page, the keyboard focus is lost to a hidden GTK widget. Focus can only be restored to the virtual machine by pressing tab or any of the four directional arrow keys. Clicking in the

[Qemu-devel] [PATCH 080/156] bochs: Check extent_size header field (CVE-2014-0142)

2014-07-08 Thread Michael Roth
From: Kevin Wolf kw...@redhat.com This fixes two possible division by zero crashes: In bochs_open() and in seek_to_sector(). Signed-off-by: Kevin Wolf kw...@redhat.com Reviewed-by: Stefan Hajnoczi stefa...@redhat.com Reviewed-by: Max Reitz mre...@redhat.com Signed-off-by: Stefan Hajnoczi

  1   2   >