Re: [Qemu-devel] [PATCH V5 0/5] tests: Add the image fuzzer with qcow2 support

2014-08-07 Thread Stefan Hajnoczi
On Wed, Aug 06, 2014 at 05:12:45PM +0400, Maria Kustova wrote: > > This patch series introduces the image fuzzer, a tool for stability and > reliability testing. > Its approach is to run large amount of tests in background. During every test > a > program (e.g. qemu-img) is called to read or modi

Re: [Qemu-devel] [PATCH V5 2/5] runner: Tool for fuzz tests execution

2014-08-07 Thread Stefan Hajnoczi
On Wed, Aug 06, 2014 at 05:12:47PM +0400, Maria Kustova wrote: > The purpose of the test runner is to prepare the test environment (e.g. create > a work directory, a test image, etc), execute a program under test with > parameters, indicate a test failure if the program was killed during the test >

Re: [Qemu-devel] [PATCH V5 1/6] icount: Add QemuOpts for icount

2014-08-07 Thread Markus Armbruster
Sebastian Tanase writes: > Make icount parameter use QemuOpts style options in order > to easily add other suboptions. > > Signed-off-by: Sebastian Tanase > Tested-by: Camille Bégué > Signed-off-by: Paolo Bonzini [...] > diff --git a/qemu-options.hx b/qemu-options.hx > index 9e54686..143def4 1

Re: [Qemu-devel] [PATCH 2/2] sheepdog: improve error handling for a case of failed lock

2014-08-07 Thread Liu Yuan
On Fri, Aug 08, 2014 at 03:17:59PM +0900, Hitoshi Mitake wrote: > At Fri, 8 Aug 2014 13:31:39 +0800, > Liu Yuan wrote: > > > > On Thu, Aug 07, 2014 at 04:28:40PM +0900, Hitoshi Mitake wrote: > > > Recently, sheepdog revived its VDI locking functionality. This patch > > > updates sheepdog driver of

Re: [Qemu-devel] [Bug 1352555] Re: iproute2 incompatibility

2014-08-07 Thread swestlake
i discovered with iproute2 i have to manually bring the "lo" interface link up which to me is pretty new.. after which the spice port can immediately work with 127.0.0.1:. what I originally meant when installing iproute2 on debian was that it uninstalls ifupdown as well as iproute. I don't kno

[Qemu-devel] [PATCH] cluster/zookeeper: add log information for zk auto-recoonect

2014-08-07 Thread Liu Yuan
Reported-by: Valerio Pachera Signed-off-by: Liu Yuan --- sheep/group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sheep/group.c b/sheep/group.c index 06a80bd..08e3884 100644 --- a/sheep/group.c +++ b/sheep/group.c @@ -979,7 +979,7 @@ static int send_join_request(void) {

Re: [Qemu-devel] [PATCH V5 1/5] docs: Specification for the image fuzzer

2014-08-07 Thread Stefan Hajnoczi
On Wed, Aug 06, 2014 at 05:12:46PM +0400, Maria Kustova wrote: > 'Overall fuzzer requirements' chapter contains the current product vision and > features done and to be done. This chapter is still in progress. > > Signed-off-by: Maria Kustova > --- > tests/image-fuzzer/docs/image-fuzzer.txt | 23

Re: [Qemu-devel] [PATCH 2/2] sheepdog: improve error handling for a case of failed lock

2014-08-07 Thread Hitoshi Mitake
At Fri, 8 Aug 2014 13:31:39 +0800, Liu Yuan wrote: > > On Thu, Aug 07, 2014 at 04:28:40PM +0900, Hitoshi Mitake wrote: > > Recently, sheepdog revived its VDI locking functionality. This patch > > updates sheepdog driver of QEMU for this feature: > > > > 1. Improve error message when QEMU fails to

Re: [Qemu-devel] [PATCH 1/2] sheepdog: adopting protocol update for VDI locking

2014-08-07 Thread Hitoshi Mitake
At Fri, 8 Aug 2014 13:20:39 +0800, Liu Yuan wrote: > > On Thu, Aug 07, 2014 at 04:28:39PM +0900, Hitoshi Mitake wrote: > > The update is required for supporting iSCSI multipath. It doesn't > > affect behavior of QEMU driver but adding a new field to vdi request > > struct is required. > > > > Cc:

Re: [Qemu-devel] [PATCH v6 1/7] exec: add parameter errp to qemu_ram_alloc and qemu_ram_alloc_from_ptr

2014-08-07 Thread Hu Tao
On Thu, Aug 07, 2014 at 09:24:35PM +1000, Peter Crosthwaite wrote: > On Thu, Aug 7, 2014 at 7:10 PM, Hu Tao wrote: > > Add parameter errp to qemu_ram_alloc and qemu_ram_alloc_from_ptr so that > > we can handle errors. > > > > Signed-off-by: Hu Tao > > Reviewed-by: Peter Crosthwaite > > Optiona

Re: [Qemu-devel] [RFC PATCH 10/10] cpus: reclaim allocated vCPU objects

2014-08-07 Thread Gu Zheng
Hi Anshul, On 08/07/2014 09:31 PM, Anshul Makkar wrote: > Thanks Gu.. cpu-hotunplug is working fine in my tests. Thanks for your quick test. > > For cpu-hotplug, I get inconsistent result if I delete arbitrary cpu > and not just the last one. > > for eg > list of cpus: 1, 2 ,3 > device_add cp

[Qemu-devel] [Bug 1354279] [NEW] The guest will be destroyed after hot remove the VF from the guest.

2014-08-07 Thread chao zhou
Public bug reported: Environment: Host OS (ia32/ia32e/IA64):ia32e Guest OS (ia32/ia32e/IA64):ia32e Guest OS Type (Linux/Windows):Linux kvm.git Commit:9f6226a762c7ae02f6a23a3d4fc552dafa57ea23 qemu.git Commit:5a7348045091a2bc15d85bb177e5956aa6114e5a Host Kernel Version:3.16.0-rc1 Hardwa

[Qemu-devel] [Bug 1354279] Re: The guest will be destroyed after hot remove the VF from the guest.

2014-08-07 Thread chao zhou
the first bad commit is: commit 22a893e4f55344f96e1aafc66f5fedc491a5ca97 Author: Paolo Bonzini Date: Wed Jun 11 10:58:06 2014 +0200 memory: MemoryRegion: replace owner field with QOM parent The two are now the same. Reviewed-by: Peter Crosthwaite Signed-off-by: Paolo

[Qemu-devel] [Bug 994378] Re: Nested-virt)L1 (kvm on kvm)guest panic with parameter “-cpu host” in qemu command line.

2014-08-07 Thread chao zhou
** Changed in: qemu Status: New => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/994378 Title: Nested-virt)L1 (kvm on kvm)guest panic with parameter “-cpu host” in qemu comman

[Qemu-devel] [Bug 994378] Re: Nested-virt)L1 (kvm on kvm)guest panic with parameter “-cpu host” in qemu command line.

2014-08-07 Thread chao zhou
when L1 guest kernel: 3.16.0(kvm.git+ qemu.git: c77dcacb..-69f87f71) create L1 guest: qemu-system-x86_64 -enable-kvm -m 6G -smp 4 -net nic,macaddr=00:12:31:45:56:13 -net tap,script=/etc/kvm/qemu-ifup ia32e_nested-kvm.img -cpu host the L1 guest boot up fine -- You received this bug notification b

Re: [Qemu-devel] [PATCH 2/2] sheepdog: improve error handling for a case of failed lock

2014-08-07 Thread Liu Yuan
On Thu, Aug 07, 2014 at 04:28:40PM +0900, Hitoshi Mitake wrote: > Recently, sheepdog revived its VDI locking functionality. This patch > updates sheepdog driver of QEMU for this feature: > > 1. Improve error message when QEMU fails to acquire lock of > VDI. Current sheepdog driver prints an error

[Qemu-devel] [Bug 994378] Re: Nested-virt)L1 (kvm on kvm)guest panic with parameter “-cpu host” in qemu command line.

2014-08-07 Thread chao zhou
this patch fixed the bug: commit 338b522ca43cfd32d11a370f4203bcd089c6c877 Author: Kan Liang Date: Mon Jul 14 12:25:56 2014 -0700 perf/x86/intel: Protect LBR and extra_regs against KVM lying With -cpu host, KVM reports LBR and extra_regs support, if the host has support. When t

Re: [Qemu-devel] [PATCH 1/2] sheepdog: adopting protocol update for VDI locking

2014-08-07 Thread Liu Yuan
On Thu, Aug 07, 2014 at 04:28:39PM +0900, Hitoshi Mitake wrote: > The update is required for supporting iSCSI multipath. It doesn't > affect behavior of QEMU driver but adding a new field to vdi request > struct is required. > > Cc: Kevin Wolf > Cc: Stefan Hajnoczi > Cc: Liu Yuan > Cc: MORITA K

[Qemu-devel] [PATCH] linux-user: Fix syscall instruction usermode emulation on X86_64

2014-08-07 Thread Jincheng Miao
Currently syscall instruction is buggy on user mode X86_64, the EIP is updated after do_syscall(), that is too late for clone(). Because clone() will create a thread at the env->EIP (the address of syscall insn), and then child thread enters do_syscall() again, that is not expected. Sometimes it is

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

2014-08-07 Thread Richard Henderson
> +static inline void gen_add_d(TCGv ret, TCGv r1, TCGv r2) > +{ > +TCGv t0 = tcg_temp_new_i32(); > +/* Addition and set V/SV bits */ > +tcg_gen_add_tl(ret, r1, r2); > +/* calc V bit */ > +tcg_gen_xor_tl(cpu_PSW_V, ret, r1); > +tcg_gen_xor_tl(t0, r1, r2); > +tcg_gen_andc

Re: [Qemu-devel] [PATCH v4 01/15] target-tricore: Add target stubs and qom-cpu

2014-08-07 Thread Richard Henderson
On 08/07/2014 04:34 AM, Bastian Koppelmann wrote: > +/* PSW flag cache for faster execution > + if flag != 0 then flag is set. Else flag is not set. > +*/ > +target_ulong PSW_USB_C; > +target_ulong PSW_USB_V; > +target_ulong PSW_USB_SV; > +target_ulong PSW_USB_AV; /*

Re: [Qemu-devel] [PATCH v3 07/10] linux-user: check return value of malloc()

2014-08-07 Thread zhanghailiang
On 2014/8/8 1:19, Richard Henderson wrote: On 08/06/2014 10:01 PM, zhanghailiang wrote: if (!lock_user_struct(VERIFY_READ, target_mb, msgp, 0)) return -TARGET_EFAULT; host_mb = malloc(msgsz+sizeof(long)); +if (!host_mb) { +return -TARGET_ENOMEM; +} lock_us

[Qemu-devel] [PATCH] linux-user: fix readlink handling with magic exe symlink

2014-08-07 Thread Mike Frysinger
From: Mike Frysinger The current code always returns the length of the path when it should be returning the number of bytes it wrote to the output string. Further, readlink is not supposed to append a NUL byte, but the current snprintf logic will always do just that. Even further, if you pass i

Re: [Qemu-devel] [000/108] Patch Round-up for stable 2.0.1, freeze on 2014-08-12

2014-08-07 Thread Michael Roth
Quoting Eric Blake (2014-08-07 16:23:14) > On 08/06/2014 02:38 PM, Michael Roth wrote: > > Hi everyone, > > > > The following new patches are queued for QEMU stable v2.0.1: > > > > https://github.com/mdroth/qemu/commits/stable-2.0-staging > > > > The release is planned for 2014-08-15: > > > >

[Qemu-devel] [Bug 1354167] [NEW] On VM restart: Could not open 'poppy.qcow2': Could not read snapshots: File too large

2014-08-07 Thread Todd
Public bug reported: I'm unable to restart a VM. virt-manager is giving me: Error starting domain: internal error: process exited while connecting to monitor: qemu-system-x86_64: -drive file=/var/lib/libvirt/images/poppy.qcow2,if=none,id=drive-virtio- disk0,format=qcow2: could not open disk ima

Re: [Qemu-devel] [PULL 0/3] qga: support fsfreeze'ing specific mounts

2014-08-07 Thread Eric Blake
On 08/07/2014 04:10 PM, Michael Roth wrote: > Hello, > > Please pull the following changes, which add a new guest-fsfreeze-freeze-list > command to qemu-ga that supports specifying specific mounts to freeze, and > improves the introspection information from guest-info by explicitly > blacklisting/

Re: [Qemu-devel] [RESEND PATCH v5 1/3] qga: Add guest-fsfreeze-freeze-list command

2014-08-07 Thread Michael Roth
Quoting Eric Blake (2014-08-07 17:03:57) > On 06/30/2014 03:51 PM, Tomoki Sekiyama wrote: > > If an array of mount point paths is specified as 'mountpoints' argument > > of guest-fsfreeze-freeze-list, qemu-ga will only freeze the file systems > > mounted on specified paths in Linux guests. Otherwis

[Qemu-devel] [PATCH 2/3] qga: Add guest-get-fsinfo command

2014-08-07 Thread Michael Roth
From: Tomoki Sekiyama Add command to get mounted filesystems information in the guest. The returned value contains a list of mountpoint paths and corresponding disks info such as disk bus type, drive address, and the disk controllers' PCI addresses, so that management layer such as libvirt can re

[Qemu-devel] [PATCH 1/3] qga: Add guest-fsfreeze-freeze-list command

2014-08-07 Thread Michael Roth
From: Tomoki Sekiyama If an array of mount point paths is specified as 'mountpoints' argument of guest-fsfreeze-freeze-list, qemu-ga will only freeze the file systems mounted on specified paths in Linux guests. Otherwise, it works as the same way as guest-fsfreeze-freeze. This would be useful whe

[Qemu-devel] [PATCH 3/3] qga: Disable unsupported commands by default

2014-08-07 Thread Michael Roth
From: Tomoki Sekiyama Currently management softwares cannot know whether a qemu-ga command is supported or not on the running platform until they actually execute it. This patch disables unsupported commands at launch time of qemu-ga, so that management softwares can check whether they are suppor

[Qemu-devel] [PULL 0/3] qga: support fsfreeze'ing specific mounts

2014-08-07 Thread Michael Roth
Hello, Please pull the following changes, which add a new guest-fsfreeze-freeze-list command to qemu-ga that supports specifying specific mounts to freeze, and improves the introspection information from guest-info by explicitly blacklisting/reporting commands that aren't supported on a particular

Re: [Qemu-devel] [RESEND PATCH v5 2/3] qga: Add guest-get-fsinfo command

2014-08-07 Thread Eric Blake
On 06/30/2014 03:51 PM, Tomoki Sekiyama wrote: > Add command to get mounted filesystems information in the guest. > The returned value contains a list of mountpoint paths and > corresponding disks info such as disk bus type, drive address, > and the disk controllers' PCI addresses, so that manageme

Re: [Qemu-devel] [RESEND PATCH v5 1/3] qga: Add guest-fsfreeze-freeze-list command

2014-08-07 Thread Eric Blake
On 06/30/2014 03:51 PM, Tomoki Sekiyama wrote: > If an array of mount point paths is specified as 'mountpoints' argument > of guest-fsfreeze-freeze-list, qemu-ga will only freeze the file systems > mounted on specified paths in Linux guests. Otherwise, it works as the > same way as guest-fsfreeze-f

Re: [Qemu-devel] [000/108] Patch Round-up for stable 2.0.1, freeze on 2014-08-12

2014-08-07 Thread Eric Blake
On 08/07/2014 09:50 AM, Eric Blake wrote: > On 08/07/2014 03:19 AM, Michael Roth wrote: >>> >>> Libvirt could support active commit against qemu 2.0.1 if you backport >>> these patches: >>> >>> Jeff Cody >>> 7676e2c597 block: make 'top' argument to block-commit optional >>> >>> Fam Zheng >>> 9e

Re: [Qemu-devel] Mousegrab broken with vfio in 2.1.0 (was: [PATCH 00/25] qemu gtk ui overhaul)

2014-08-07 Thread Benedikt Morbach
On Thu, 2014-08-07 at 00:22 +0200, Benedikt Morbach wrote: > I think one of those gtk patches broke mouse/keyboard grab for my > Windows 8 vfio/vga-passthrough setup in 2.1.0 and I was instructed on > IRC to report that here. > > With 2.0.0 I got a black qemu window with "This VM has no graphic >

Re: [Qemu-devel] [RESEND PATCH v5 0/3] qga: Add guest-fsfreeze-freeze-list command

2014-08-07 Thread Michael Roth
Quoting Tomoki Sekiyama (2014-06-30 16:51:21) > Hi, > > As patch 3/3 was missing in the last post, I'm resending this patchset. > > === > This is v5 patch for qemu-ga to add functions to freeze specific file systems > mounted in a guest. > > Changes since v4: > - PATCH 2: fix coding styles (spa

Re: [Qemu-devel] [000/108] Patch Round-up for stable 2.0.1, freeze on 2014-08-12

2014-08-07 Thread Eric Blake
On 08/06/2014 02:38 PM, Michael Roth wrote: > Hi everyone, > > The following new patches are queued for QEMU stable v2.0.1: > > https://github.com/mdroth/qemu/commits/stable-2.0-staging > > The release is planned for 2014-08-15: > > http://wiki.qemu.org/Planning/2.0 > > Please respond here

Re: [Qemu-devel] [000/108] Patch Round-up for stable 2.0.1, freeze on 2014-08-12

2014-08-07 Thread Eric Blake
On 08/07/2014 03:10 PM, Peter Maydell wrote: > On 7 August 2014 21:55, Eric Blake wrote: >> Turns out to be caused by leftovers, from trying an incremental build in >> the same tree where I had 2.1 object files. Maybe the makefiles can be >> improved to deal gracefully with this case, but as a cl

Re: [Qemu-devel] [000/108] Patch Round-up for stable 2.0.1, freeze on 2014-08-12

2014-08-07 Thread Peter Maydell
On 7 August 2014 21:55, Eric Blake wrote: > Turns out to be caused by leftovers, from trying an incremental build in > the same tree where I had 2.1 object files. Maybe the makefiles can be > improved to deal gracefully with this case, but as a clean build didn't > suffer from the problem, it's n

Re: [Qemu-devel] [PATCH 0/3] qcow2: Prevent corruption-related crashes

2014-08-07 Thread Eric Blake
On 08/07/2014 02:47 PM, Max Reitz wrote: > The first two patches in this series address > https://bugs.launchpad.net/qemu/+bug/1349972. > > For the third patch I found it hard to write an appropriate test case > (it would have to make qemu-img check repair some leaks but induce the > corruption pr

Re: [Qemu-devel] [000/108] Patch Round-up for stable 2.0.1, freeze on 2014-08-12

2014-08-07 Thread Eric Blake
On 08/07/2014 02:23 PM, Eric Blake wrote: >> >> I tried to compile on Fedora 20, but had to backport this to get it to work: >> >> Luiz Capitulino >> a49db98d fpu: softfloat: drop INLINE macro > > Oops, spoke too soon. I hit another build failure - anyone recognize > this, or which commit to bac

[Qemu-devel] [PATCH 2/3] iotests: Add test for image header overlap

2014-08-07 Thread Max Reitz
Add a test for an image with an unallocated image header; instead of an assertion, this should result in the image being marked corrupt. Signed-off-by: Max Reitz --- tests/qemu-iotests/060 | 9 + tests/qemu-iotests/060.out | 8 2 files changed, 17 insertions(+) diff --git a

[Qemu-devel] [PATCH 1/3] qcow2: Catch !*host_offset for data allocation

2014-08-07 Thread Max Reitz
qcow2_alloc_cluster_offset() uses host_offset == 0 as "no preferred offset" for the (data) cluster range to be allocated. However, this offset is actually valid and may be allocated on images with a corrupted refcount table or first refcount block. In this case, the corruption prevention should no

[Qemu-devel] [PATCH 0/3] qcow2: Prevent corruption-related crashes

2014-08-07 Thread Max Reitz
The first two patches in this series address https://bugs.launchpad.net/qemu/+bug/1349972. For the third patch I found it hard to write an appropriate test case (it would have to make qemu-img check repair some leaks but induce the corruption prevention at the same time). One can use the test imag

[Qemu-devel] [PATCH 3/3] block: Catch !bs->drv in bdrv_check()

2014-08-07 Thread Max Reitz
qemu-img check calls bdrv_check() twice if the first run repaired some inconsistencies. If the first run however again triggered corruption prevention (on qcow2) due to very bad inconsistencies, bs->drv may be NULL afterwards. Thus, bdrv_check() should check whether bs->drv is set. Signed-off-by:

Re: [Qemu-devel] [PATCH] arm/virt: Use PSCI v0.2 function IDs in the DT when KVM uses PSCI v0.2

2014-08-07 Thread Christoffer Dall
On Thu, Aug 07, 2014 at 07:06:12PM +0100, Peter Maydell wrote: > On 7 August 2014 17:30, Christoffer Dall wrote: > > The current code supplies the PSCI v0.1 funciton IDs in the DT even when > > "function" > > > KVM uses PSCI v0.2. > > > > This will break guest kernels that only support PSCI v0.1

Re: [Qemu-devel] [000/108] Patch Round-up for stable 2.0.1, freeze on 2014-08-12

2014-08-07 Thread Eric Blake
On 08/07/2014 02:21 PM, Eric Blake wrote: > On 08/06/2014 02:38 PM, Michael Roth wrote: >> Hi everyone, >> >> The following new patches are queued for QEMU stable v2.0.1: >> >> https://github.com/mdroth/qemu/commits/stable-2.0-staging >> >> Testing/feedback is greatly appreciated. >> > > I trie

Re: [Qemu-devel] [000/108] Patch Round-up for stable 2.0.1, freeze on 2014-08-12

2014-08-07 Thread Eric Blake
On 08/06/2014 02:38 PM, Michael Roth wrote: > Hi everyone, > > The following new patches are queued for QEMU stable v2.0.1: > > https://github.com/mdroth/qemu/commits/stable-2.0-staging > > The release is planned for 2014-08-15: > > http://wiki.qemu.org/Planning/2.0 > > Please respond here

Re: [Qemu-devel] [PATCH] arm/virt: Use PSCI v0.2 function IDs in the DT when KVM uses PSCI v0.2

2014-08-07 Thread Zi Shen Lim
On Thu, Aug 7, 2014 at 9:30 AM, Christoffer Dall wrote: > > The current code supplies the PSCI v0.1 funciton IDs in the DT even when > KVM uses PSCI v0.2. > > This will break guest kernels that only support PSCI v0.1 as they will > use the IDs provided in the DT. Guest kernels with PSCI v0.2 supp

Re: [Qemu-devel] [PATCH v2 0/2] Add machine type pc-1.0-qemu-kvm for live migrate compatibility with qemu-kvm

2014-08-07 Thread Serge E. Hallyn
Quoting Alex Bligh (a...@alex.org.uk): > Serge, > > On 7 Aug 2014, at 03:50, Serge Hallyn wrote: > > > This worked for me when migrating by hand. I'm trying to make it work > > through libvirt, using the following patch. (So whether to have > > pc-1.0 be treated as qemu's or qemu-kvm's pc-1.0

Re: [Qemu-devel] [PATCH v4 00/21] block: Handle failure for potentially large allocations

2014-08-07 Thread Max Reitz
On 24.06.2014 17:36, Kevin Wolf wrote: A not too small part of the recent CVEs were DoS scenarios by letting qemu abort with too large memory allocations. We generally "fixed" these cases by setting some limits on values read from image files that influence the size of allocations. Because we st

Re: [Qemu-devel] [PATCH] arm/virt: Use PSCI v0.2 function IDs in the DT when KVM uses PSCI v0.2

2014-08-07 Thread Peter Maydell
On 7 August 2014 17:30, Christoffer Dall wrote: > The current code supplies the PSCI v0.1 funciton IDs in the DT even when "function" > KVM uses PSCI v0.2. > > This will break guest kernels that only support PSCI v0.1 as they will > use the IDs provided in the DT. Guest kernels with PSCI v0.2 s

Re: [Qemu-devel] [PATCH v3 07/10] linux-user: check return value of malloc()

2014-08-07 Thread Richard Henderson
On 08/06/2014 10:01 PM, zhanghailiang wrote: > if (!lock_user_struct(VERIFY_READ, target_mb, msgp, 0)) > return -TARGET_EFAULT; > host_mb = malloc(msgsz+sizeof(long)); > +if (!host_mb) { > +return -TARGET_ENOMEM; > +} lock_user allocates memory; returning from th

[Qemu-devel] [PATCH] arm/virt: Use PSCI v0.2 function IDs in the DT when KVM uses PSCI v0.2

2014-08-07 Thread Christoffer Dall
The current code supplies the PSCI v0.1 funciton IDs in the DT even when KVM uses PSCI v0.2. This will break guest kernels that only support PSCI v0.1 as they will use the IDs provided in the DT. Guest kernels with PSCI v0.2 support are not affected by this patch, because they ignore the function

Re: [Qemu-devel] [000/108] Patch Round-up for stable 2.0.1, freeze on 2014-08-12

2014-08-07 Thread Michael Roth
Quoting Eric Blake (2014-08-07 10:50:41) > On 08/07/2014 03:19 AM, Michael Roth wrote: > >> > >> Libvirt could support active commit against qemu 2.0.1 if you backport > >> these patches: > >> > >> Jeff Cody > >> 7676e2c597 block: make 'top' argument to block-commit optional > >> > >> Fam Zheng >

[Qemu-devel] [Bug 1353947] Re: Hypervisor with QEMU-2.0/libvirtd 1.2.2 stack when launching VM with CirrOS or Ubuntu 12.04

2014-08-07 Thread Serge Hallyn
Sorry, I'm having trouble following your findings. Could you please give a new table, like this: == GuestOS | Guestkernel | HostOS | Hostkernel | qemu version| libvir

Re: [Qemu-devel] [000/108] Patch Round-up for stable 2.0.1, freeze on 2014-08-12

2014-08-07 Thread Eric Blake
On 08/07/2014 03:19 AM, Michael Roth wrote: >> >> Libvirt could support active commit against qemu 2.0.1 if you backport >> these patches: >> >> Jeff Cody >> 7676e2c597 block: make 'top' argument to block-commit optional >> >> Fam Zheng >> 9e48b02540 mirror: Go through ready -> complete process

Re: [Qemu-devel] aarch64 & gdb: warning: while parsing target description (at line 1): Could not load XML document "arm-core.xml"

2014-08-07 Thread Peter Maydell
On 7 August 2014 16:06, Richard W.M. Jones wrote: > On Thu, Aug 07, 2014 at 02:53:33PM +0100, Peter Maydell wrote: >> I think the biggest difficulty is not the code to actually >> do the switch but figuring out what the command line >> UI to request "start in AArch32" ought to be and how that >> t

Re: [Qemu-devel] [PATCH v2 4/4] parallels: 2TB+ parallels images support

2014-08-07 Thread Denis V. Lunev
On 07/08/14 19:22, Denis V. Lunev wrote: Another question - do you have any sample images? If they compress well (bzip2 does a good job with most blank images) it would be nice to have a couple of parallels images (e.g. one "WithouFreSpacExt" and one "WithoutFreeSpace") in the tests sample_imag

Re: [Qemu-devel] [PATCH RFC 0/3] dataplane: dataplane: more graceful error handling

2014-08-07 Thread Cornelia Huck
On Thu, 7 Aug 2014 16:39:01 +0200 Kevin Wolf wrote: > Am 25.07.2014 um 14:10 hat Cornelia Huck geschrieben: > > Currently, qemu will take a hard exit if it fails to set up guest or > > host notifiers, giving no real clue as to what went wrong (e.g., when > > out of file descriptors). > > > > Thi

Re: [Qemu-devel] [PATCH v2 4/4] parallels: 2TB+ parallels images support

2014-08-07 Thread Denis V. Lunev
On 07/08/14 19:14, Jeff Cody wrote: On Thu, Aug 07, 2014 at 07:03:12PM +0400, Denis V. Lunev wrote: On 07/08/14 18:39, Jeff Cody wrote: On Mon, Jul 28, 2014 at 08:23:55PM +0400, Denis V. Lunev wrote: Parallels has released in the recent updates of Parallels Server 5/6 new addition to his image

Re: [Qemu-devel] [PATCH v2 4/4] parallels: 2TB+ parallels images support

2014-08-07 Thread Jeff Cody
On Thu, Aug 07, 2014 at 07:03:12PM +0400, Denis V. Lunev wrote: > On 07/08/14 18:39, Jeff Cody wrote: > >On Mon, Jul 28, 2014 at 08:23:55PM +0400, Denis V. Lunev wrote: > >>Parallels has released in the recent updates of Parallels Server 5/6 > >>new addition to his image format. Images with signatu

Re: [Qemu-devel] aarch64 & gdb: warning: while parsing target description (at line 1): Could not load XML document "arm-core.xml"

2014-08-07 Thread Richard W.M. Jones
On Thu, Aug 07, 2014 at 02:53:33PM +0100, Peter Maydell wrote: > On 7 August 2014 14:43, Christopher Covington wrote: > > On 08/07/2014 08:03 AM, Peter Maydell wrote: > >> No, because at the moment our AArch64 TCG implementation > >> (and the way we configure KVM) assumes that the highest > >> exc

Re: [Qemu-devel] [PATCH v2 4/4] parallels: 2TB+ parallels images support

2014-08-07 Thread Denis V. Lunev
On 07/08/14 18:39, Jeff Cody wrote: On Mon, Jul 28, 2014 at 08:23:55PM +0400, Denis V. Lunev wrote: Parallels has released in the recent updates of Parallels Server 5/6 new addition to his image format. Images with signature WithouFreSpacExt have offsets in the catalog coded not as offsets in se

Re: [Qemu-devel] aarch64 & gdb: warning: while parsing target description (at line 1): Could not load XML document "arm-core.xml"

2014-08-07 Thread Peter Maydell
On 7 August 2014 15:13, Christopher Covington wrote: > On 08/07/2014 09:53 AM, Peter Maydell wrote: >> I think the biggest difficulty is not the code to actually >> do the switch but figuring out what the command line >> UI to request "start in AArch32" ought to be and how that >> then gets plumbe

Re: [Qemu-devel] [PATCH v3 0/5] Allow VPC and VDI to be created over protocols

2014-08-07 Thread Kevin Wolf
Am 23.07.2014 um 23:22 hat Jeff Cody geschrieben: > Changes from v2 -> v3: > * Patch 2: Removed extra #ifdef __linux__ from top of file (Max) > * Patch 4: Removed extra #ifdef __linux__ from top of file (Max) > * Patch 5: Removed output from debug cruft (Max) > * Added Max's R-b to

Re: [Qemu-devel] [PATCH v2 4/4] parallels: 2TB+ parallels images support

2014-08-07 Thread Jeff Cody
On Mon, Jul 28, 2014 at 08:23:55PM +0400, Denis V. Lunev wrote: > Parallels has released in the recent updates of Parallels Server 5/6 > new addition to his image format. Images with signature WithouFreSpacExt > have offsets in the catalog coded not as offsets in sectors (multiple > of 512 bytes) b

Re: [Qemu-devel] [PATCH RFC 0/3] dataplane: dataplane: more graceful error handling

2014-08-07 Thread Kevin Wolf
Am 25.07.2014 um 14:10 hat Cornelia Huck geschrieben: > Currently, qemu will take a hard exit if it fails to set up guest or > host notifiers, giving no real clue as to what went wrong (e.g., when > out of file descriptors). > > This patchset tries to make this more manageable: Both by improving t

Re: [Qemu-devel] [PATCH v2 3/4] parallels: split check for parallels format in parallels_open

2014-08-07 Thread Jeff Cody
On Mon, Jul 28, 2014 at 08:23:54PM +0400, Denis V. Lunev wrote: > and rework error path a bit. There is no difference at the moment, but > the code will be definitely shorter when additional processing will > be required for WithouFreSpacExt > > Signed-off-by: Denis V. Lunev > CC: Jeff Cody > CC

Re: [Qemu-devel] [PATCH v2 1/4] parallels: extend parallels format header with actual data values

2014-08-07 Thread Jeff Cody
On Mon, Jul 28, 2014 at 08:23:52PM +0400, Denis V. Lunev wrote: > Parallels image format has several additional fields inside: > - nb_sectors is actually 64 bit wide. Upper 32bits are not used for > images with signature "WithoutFreeSpace" and must be explicitly > zeroed according to Parallels.

Re: [Qemu-devel] [PATCH 2/2] scsi-bus: Convert DeviceClass init to realize

2014-08-07 Thread Kevin Wolf
Am 05.08.2014 um 11:11 hat Fam Zheng geschrieben: > Replace "init/destroy" with "realize/unrealize" in SCSIDeviceClass, > which has errp as a parameter. So all the implementations now uses > error_setg instead of error_report for reporting error. > > Also in lsi53c895a, report the error when initi

Re: [Qemu-devel] aarch64 & gdb: warning: while parsing target description (at line 1): Could not load XML document "arm-core.xml"

2014-08-07 Thread Christopher Covington
On 08/07/2014 09:53 AM, Peter Maydell wrote: > On 7 August 2014 14:43, Christopher Covington wrote: >> On 08/07/2014 08:03 AM, Peter Maydell wrote: >>> No, because at the moment our AArch64 TCG implementation >>> (and the way we configure KVM) assumes that the highest >>> exception level is runnin

Re: [Qemu-devel] [PATCH] test-coroutine: add baseline test that times the cost of function calls

2014-08-07 Thread Kevin Wolf
Am 07.08.2014 um 11:33 hat Stefan Hajnoczi geschrieben: > On Wed, Aug 06, 2014 at 11:33:41AM +0200, Paolo Bonzini wrote: > > This can be used to compute the cost of coroutine operations. In the > > end the cost of the function call is a few clock cycles, so it's pretty > > cheap for now, but it ma

Re: [Qemu-devel] [PATCH 0/2] VHDX endian fixes, error reporting

2014-08-07 Thread Kevin Wolf
Am 07.08.2014 um 12:05 hat Stefan Hajnoczi geschrieben: > On Wed, Aug 06, 2014 at 03:54:56PM -0400, Jeff Cody wrote: > > This series is mainly for some bug fixes related to VHDX endianness, > > stemming > > from code reviews done by Markus Armbruster and Paolo Bonzini. Once I did > > some > > te

Re: [Qemu-devel] aarch64 & gdb: warning: while parsing target description (at line 1): Could not load XML document "arm-core.xml"

2014-08-07 Thread Peter Maydell
On 7 August 2014 14:43, Christopher Covington wrote: > On 08/07/2014 08:03 AM, Peter Maydell wrote: >> No, because at the moment our AArch64 TCG implementation >> (and the way we configure KVM) assumes that the highest >> exception level is running AArch64. We might fix this eventually, >> though.

Re: [Qemu-devel] [PATCH v1 00/17] dataplane: optimization and multi virtqueue support

2014-08-07 Thread Kevin Wolf
Am 07.08.2014 um 12:27 hat Ming Lei geschrieben: > On Wed, Aug 6, 2014 at 11:40 PM, Kevin Wolf wrote: > > Am 06.08.2014 um 13:28 hat Ming Lei geschrieben: > >> On Wed, Aug 6, 2014 at 6:09 PM, Kevin Wolf wrote: > >> > Am 06.08.2014 um 11:37 hat Ming Lei geschrieben: > >> >> On Wed, Aug 6, 2014 at

Re: [Qemu-devel] aarch64 & gdb: warning: while parsing target description (at line 1): Could not load XML document "arm-core.xml"

2014-08-07 Thread Christopher Covington
On 08/07/2014 08:03 AM, Peter Maydell wrote: > On 7 August 2014 12:43, Richard W.M. Jones wrote: >> On Thu, Aug 07, 2014 at 12:35:27PM +0100, Peter Maydell wrote: >>> On 7 August 2014 12:29, Richard W.M. Jones wrote: On Thu, Aug 07, 2014 at 12:18:49PM +0100, Peter Maydell wrote: > you di

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

2014-08-07 Thread Bastian Koppelmann
Add instructions of SR opcode format. Add micro-op generator functions for saturate. Add helper return from exception (rfe). Signed-off-by: Bastian Koppelmann --- v3 -> v4: - Replace first movcond with tcg_gen_setcond and second with tcg_gen_or at RSUB insn. - Add AV, SAV calculation to

[Qemu-devel] [PULL v2 10/11] monitor: Add drift info to 'info jit'

2014-08-07 Thread Paolo Bonzini
From: Sebastian Tanase Show in 'info jit' the current delay between the host clock and the guest clock. In addition, print the maximum advance and delay of the guest compared to the host. Signed-off-by: Sebastian Tanase Tested-by: Camille Bégué Signed-off-by: Paolo Bonzini --- cpu-exec.c

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

2014-08-07 Thread Bastian Koppelmann
Add instructions of SLR, SSRO and SRO opcode format. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/translate.c | 121 + 1 file changed, 121 insertions(+) diff --git a/target-tricore/translate.c b/target-tricore/

[Qemu-devel] [Bug 1353947] [NEW] Hypervisor with QEMU-2.0/libvirtd 1.2.2 stack when launching VM with CirrOS or Ubuntu 12.04

2014-08-07 Thread Eyal Perry
Public bug reported: The issue observed when running an hypervisor with QEMU 2.0/libvirtd 1.2.2 The VM network interface is attached to a PCI virtual function (SR-IOV). When we ran VM with guest OS CirrOS or Ubuntu 12.04 we observed an hipervisor hang shortly after the VM is loaded We observed t

[Qemu-devel] [PULL v2 00/11] KVM, icount changes for 2014-08-06

2014-08-07 Thread Paolo Bonzini
The following changes since commit 41a1a9c42c4e0fb5f1b94aa8b72e42f66ebde3d9: po: Update German translation (2014-07-28 23:37:17 +0200) are available in the git repository at: git://github.com/bonzini/qemu.git tags/for-upstream for you to fetch changes up to eddedd546a68f6ac864b71d50dd8d39b9

Re: [Qemu-devel] [RFC PATCH 10/10] cpus: reclaim allocated vCPU objects

2014-08-07 Thread Anshul Makkar
Thanks Gu.. cpu-hotunplug is working fine in my tests. For cpu-hotplug, I get inconsistent result if I delete arbitrary cpu and not just the last one. for eg list of cpus: 1, 2 ,3 device_add cpu 4 device_add cpu 5 device_add cpu 6 device_del cpu 4 device_del cpu 6 now if I do device_add cpu6,

[Qemu-devel] [PATCH v4 03/15] target-tricore: Add softmmu support

2014-08-07 Thread Bastian Koppelmann
Add basic softmmu support for TriCore Signed-off-by: Bastian Koppelmann --- target-tricore/helper.c| 54 +- target-tricore/op_helper.c | 33 +++- 2 files changed, 85 insertions(+), 2 deletions(-) diff --git a/target-tricore

[Qemu-devel] [PATCH v4 10/15] target-tricore: Add instructions of SB opcode format

2014-08-07 Thread Bastian Koppelmann
Add instructions of SB opcode format. Add helper call/ret. Add micro-op generator functions for branches. Add makro to generate helper functions. Signed-off-by: Bastian Koppelmann --- v3 -> v4: - Add missing break in gen_compute_branch at CALL insn. target-tricore/helper.h| 3 + targe

[Qemu-devel] [PATCH v4 04/15] target-tricore: Add initialization for translation and activate target

2014-08-07 Thread Bastian Koppelmann
Add tcg and cpu model initialization. Add gen_intermediate_code function. Activate target in configure and add softmmu config. Signed-off-by: Bastian Koppelmann --- configure | 5 ++ default-configs/tricore-softmmu.mak | 3 + target-tricore/translate.c | 16

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

2014-08-07 Thread Bastian Koppelmann
Add instructions of SC opcode format. Add helper for begin interrupt service routine. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/helper.h| 1 + target-tricore/op_helper.c | 59 ++ target-tricore/translate

[Qemu-devel] [PATCH v4 06/15] target-tricore: Add instructions of SRC opcode format

2014-08-07 Thread Bastian Koppelmann
Add instructions of SRC opcode format. Add micro-op generator functions for add, conditional add/sub and shi/shai. Signed-off-by: Bastian Koppelmann --- v3 -> v4: - Remove gen_calc_psw_sv, gen_calc_psw_av, gen_calc_psw_sav functions. - Replace gen_calc_psw_sv, gen_calc_psw_sav, gen_calc_p

[Qemu-devel] [PATCH v4 02/15] target-tricore: Add board for systemmode

2014-08-07 Thread Bastian Koppelmann
Add basic board to allow systemmode emulation Signed-off-by: Bastian Koppelmann --- hw/tricore/Makefile.objs | 1 + hw/tricore/tricore_testboard.c | 129 + include/hw/tricore/tricore.h | 54 + 3 files changed, 184 insertions(+)

[Qemu-devel] [PATCH v4 00/15] TriCore architecture guest implementation

2014-08-07 Thread Bastian Koppelmann
Hi, my aim is to add Infineon's TriCore architecture to QEMU. This series of patches adds the target stubs, a basic testboard and a softmmu for system mode emulation. Furthermore it adds all the 16 bit long instructions of the architecture grouped by opcode format. After this series of patches

[Qemu-devel] [PATCH v4 11/15] target-tricore: Add instructions of SBC and SBRN opcode format

2014-08-07 Thread Bastian Koppelmann
Add instructions of SBC and SBRN opcode format. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/translate.c | 36 1 file changed, 36 insertions(+) diff --git a/target-tricore/translate.c b/target-tricore/translate.c inde

[Qemu-devel] [PATCH v4 05/15] target-tricore: Add masks and opcodes for decoding

2014-08-07 Thread Bastian Koppelmann
Add masks and opcodes for decoding TriCore instructions. Signed-off-by: Bastian Koppelmann --- target-tricore/translate.c |1 + target-tricore/tricore-opcodes.h | 1406 ++ 2 files changed, 1407 insertions(+) create mode 100644 target-tricore/tricore

[Qemu-devel] [PATCH v4 09/15] target-tricore: Add instructions of SRRS and SLRO opcode format

2014-08-07 Thread Bastian Koppelmann
Add instructions of SSRS and SLRO opcode format. Add micro-op generator functions for offset loads. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/translate.c | 54 ++ 1 file changed, 54 insertions(+) diff --git

[Qemu-devel] [PATCH v4 08/15] target-tricore: Add instructions of SSR opcode format

2014-08-07 Thread Bastian Koppelmann
Add instructions of SSR opcode format. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/translate.c | 50 ++ 1 file changed, 50 insertions(+) diff --git a/target-tricore/translate.c b/target-tricore/translate.c ind

[Qemu-devel] [PATCH v4 01/15] target-tricore: Add target stubs and qom-cpu

2014-08-07 Thread Bastian Koppelmann
Add TriCore target stubs, and QOM cpu. Signed-off-by: Bastian Koppelmann --- v3 -> v4: - tricore_cpu_type_info changed to abstract. - Change documentation of PSW_USB_AV and PSW_USB_SAV bit to only use bit 31. - Change psw_read/_write to only use bit 31 for PSW_USB_AV and PSW_USB_SAV.

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

2014-08-07 Thread Bastian Koppelmann
Add instructions of SBR opcode format. Add gen_loop micro-op generator function. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/translate.c | 66 +- 1 file changed, 65 insertions(+), 1 deletion(-) diff --git a/ta

[Qemu-devel] [PATCH v4 07/15] target-tricore: Add instructions of SRR opcode format

2014-08-07 Thread Bastian Koppelmann
Add instructions of SRR opcode format. Add helper for add/sub_ssov. Signed-off-by: Bastian Koppelmann --- v3 -> v4: - Replace gen_calc_psw_sv, gen_calc_psw_sav, gen_calc_psw_av calls. - Rename gen_sub_i32 to gen_sub_d. - Fix V bit calculation in gen_sub_d and gen_mul_i32s. - helpe

Re: [Qemu-devel] [PATCH v1 00/17] dataplane: optimization and multi virtqueue support

2014-08-07 Thread Ming Lei
On Thu, Aug 7, 2014 at 7:06 PM, Kevin Wolf wrote: > Am 07.08.2014 um 12:52 hat Ming Lei geschrieben: >> On Thu, Aug 7, 2014 at 6:27 PM, Ming Lei wrote: >> > On Wed, Aug 6, 2014 at 11:40 PM, Kevin Wolf wrote: >> >> > Also there are some problems with your patches which can't boot a >> > VM in my

Re: [Qemu-devel] [PATCH v5 0/8] modify boot order of guest, and take effect after rebooting

2014-08-07 Thread Gonglei (Arei)
> Subject: Re: [PATCH v5 0/8] modify boot order of guest, and take effect after > rebooting > > Il 07/08/2014 13:50, Gonglei (Arei) ha scritto: > > Hi, > > > > Ping... please. > > > > TBH, I am confused which maintainer can maintain the patch serials about > bootindex. > > > > Gerd is seemingly no

Re: [Qemu-devel] [PATCH v5 0/8] modify boot order of guest, and take effect after rebooting

2014-08-07 Thread Paolo Bonzini
Il 07/08/2014 13:50, Gonglei (Arei) ha scritto: > Hi, > > Ping... please. > > TBH, I am confused which maintainer can maintain the patch serials about > bootindex. > > Gerd is seemingly not in maillist later two weeks. > > Markus? Paolo? MST? PMM? Eduardo? Thanks for any help. Gerd is on hol

  1   2   >