[Qemu-devel] [PATCH 2/7] KVM: i386: Re-inject #DB to guest with updated DR6

2019-06-14 Thread Paolo Bonzini
From: Liran Alon If userspace (QEMU) debug guest, when #DB is raised in guest and intercepted by KVM, KVM forwards information on #DB to userspace instead of injecting #DB to guest. While doing so, KVM don't update vCPU DR6 but instead report the #DB DR6 value to userspace for further handling. S

[Qemu-devel] [PATCH 4/7] linux-headers: import improved definition of KVM_GET/SET_NESTED_STATE structs

2019-06-14 Thread Paolo Bonzini
This patch improves the KVM_GET/SET_NESTED_STATE structs by detailing the format of VMX nested state in a struct. The VMX nested state is accessible through struct kvm_vmx_nested_state though, to avoid changing the size of the structs, it has to be accessed as "vmx.data[0]" rather than just "vmx.d

[Qemu-devel] [PATCH 5/7] vmstate: Add support for kernel integer types

2019-06-14 Thread Paolo Bonzini
From: Liran Alon Reviewed-by: Nikita Leshenko Signed-off-by: Liran Alon Signed-off-by: Paolo Bonzini --- include/migration/vmstate.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 9224370ed5..a85424fb04 1

[Qemu-devel] [PATCH 6/7] KVM: i386: Add support for save and restore nested state

2019-06-14 Thread Paolo Bonzini
From: Liran Alon Kernel commit 8fcc4b5923af ("kvm: nVMX: Introduce KVM_CAP_NESTED_STATE") introduced new IOCTLs to extract and restore KVM internal state used to run a VM that is in VMX operation. Utilize these IOCTLs to add support of migration of VMs which are running nested hypervisors. Revi

[Qemu-devel] [PATCH preliminary 0/7] target-i386/kvm: live migration support for nested VMX

2019-06-14 Thread Paolo Bonzini
This is mostly Liran's work. It's preliminary because he found some cases that break but he hasn't debugged them fully yet (a kernel bug is suspected though) and because my version, which only requires a very small and backwards-compatible linux-headers change (patch 4), has seen even less testing

[Qemu-devel] [PATCH 7/7] Revert "target/i386: kvm: add VMX migration blocker"

2019-06-14 Thread Paolo Bonzini
From: Liran Alon This reverts commit d98f26073bebddcd3da0ba1b86c3a34e840c0fb8. The commit should be reverted because we now support nVMX migration. Reviewed-by: Nikita Leshenko Signed-off-by: Liran Alon Signed-off-by: Paolo Bonzini --- target/i386/kvm.c | 12 1 file changed, 12

[Qemu-devel] [PATCH 1/7] KVM: i386: Use symbolic constant for #DB/#BP exception constants

2019-06-14 Thread Paolo Bonzini
From: Liran Alon Reviewed-by: Nikita Leshenko Signed-off-by: Liran Alon Signed-off-by: Paolo Bonzini --- target/i386/kvm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/i386/kvm.c b/target/i386/kvm.c index 3b29ce5c0d..c8d8196e71 100644 --- a/target/i386/kvm.

[Qemu-devel] [PATCH 3/7] KVM: i386: Add support for KVM_CAP_EXCEPTION_PAYLOAD

2019-06-14 Thread Paolo Bonzini
From: Liran Alon Kernel commit c4f55198c7c2 ("kvm: x86: Introduce KVM_CAP_EXCEPTION_PAYLOAD") introduced a new KVM capability which allows userspace to correctly distinguish between pending and injected exceptions. This distinguish is important in case of nested virtualization scenarios because

Re: [Qemu-devel] [PATCH 1/7] KVM: i386: Use symbolic constant for #DB/#BP exception constants

2019-06-14 Thread Liran Alon
> On 15 Jun 2019, at 3:42, Paolo Bonzini wrote: > > From: Liran Alon > > Reviewed-by: Nikita Leshenko > Signed-off-by: Liran Alon > Signed-off-by: Paolo Bonzini > --- > target/i386/kvm.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/target/i386/kvm.c b/tar

Re: [Qemu-devel] [PATCH 3/7] KVM: i386: Add support for KVM_CAP_EXCEPTION_PAYLOAD

2019-06-14 Thread Liran Alon
> On 15 Jun 2019, at 3:42, Paolo Bonzini wrote: > > From: Liran Alon > > Kernel commit c4f55198c7c2 ("kvm: x86: Introduce KVM_CAP_EXCEPTION_PAYLOAD") > introduced a new KVM capability which allows userspace to correctly > distinguish between pending and injected exceptions. > > This disting

Re: [Qemu-devel] [PATCH 6/7] KVM: i386: Add support for save and restore nested state

2019-06-14 Thread Liran Alon
> On 15 Jun 2019, at 3:42, Paolo Bonzini wrote: > > From: Liran Alon > > Kernel commit 8fcc4b5923af ("kvm: nVMX: Introduce KVM_CAP_NESTED_STATE") > introduced new IOCTLs to extract and restore KVM internal state used to > run a VM that is in VMX operation. > > Utilize these IOCTLs to add su

[Qemu-devel] [Bug 1832914] [NEW] Wrong error log when drive is specified qcow but qcow2 image file used.

2019-06-14 Thread saeed
Public bug reported: On archlinux qemu version 4.0.0 when I type: $ qemu-system-x86_64 -drive format=qcow,file=image.qcow2 ... I get this output in stderr qemu-system-x86_64 -drive format=qcow,file=image.qcow2 ...: Unsupported qcow version 3 image.qcow2 is a qcow2 image created by qemu-img. er

[Qemu-devel] [Bug 1722074] Re: warning: host doesn't support requested feature: CPUID.01H:ECX.vmx

2019-06-14 Thread Ken Sharp
How is this a bug? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1722074 Title: warning: host doesn't support requested feature: CPUID.01H:ECX.vmx Status in QEMU: Invalid Status in qemu package

[Qemu-devel] [PATCH] net: cadence_gem: clear RX control descriptor

2019-06-14 Thread Ramon Fried
The RX ring descriptors control field is used for setting SOF and EOF (start of frame and end of frame). The SOF and EOF weren't cleared from the previous descriptors, causing inconsistencies in ring buffer. Fix that by clearing the control field of every descriptors we're processing. Signed-off-b

[Qemu-devel] [PATCH v3] net: cadence_gem: fix compilation error when debug is on

2019-06-14 Thread Ramon Fried
defining CADENCE_GEM_ERR_DEBUG causes compilation errors, fix that. Signed-off-by: Ramon Fried --- v2: change %lx to HWADDR_PRIx and %lx to %zdx v3: change %zdx to %zx hw/net/cadence_gem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/net/cadence_gem.c b/hw/net/ca

Re: [Qemu-devel] [PATCH v2] net: cadence_gem: fix compilation error when debug is on

2019-06-14 Thread Ramon Fried
On Wed, Jun 12, 2019 at 10:40 AM Laurent Vivier wrote: > Le 12/06/2019 à 06:27, Ramon Fried a écrit : > > > > > > On Tue, Jun 11, 2019 at 7:21 PM Laurent Vivier > > wrote: > > > > Le 11/06/2019 à 16:55, Ramon Fried a écrit : > > > defining CADENCE_GEM_ERR_DEBUG

Re: [Qemu-devel] [PATCH v3] net: cadence_gem: fix compilation error when debug is on

2019-06-14 Thread Philippe Mathieu-Daudé
Hi Ramon, On 6/15/19 7:15 AM, Ramon Fried wrote: > defining CADENCE_GEM_ERR_DEBUG causes compilation > errors, fix that. > > Signed-off-by: Ramon Fried > --- > v2: change %lx to HWADDR_PRIx and %lx to %zdx > v3: change %zdx to %zx > > hw/net/cadence_gem.c | 6 +++--- > 1 file changed, 3 insert

Re: [Qemu-devel] [PATCH] MAINTAINERS: Change maintership of Xen code under hw/9pfs

2019-06-14 Thread Philippe Mathieu-Daudé
Cc'ing qemu-trivial@ On 6/14/19 6:50 PM, Greg Kurz wrote: [...] > Markus, Xen maintainers, > > All needed Acked-by have been provided. I don't plan to send a 9pfs PR > anytime soon. Can this go through someone else's tree please ? > > Cheers, > > -- > Greg >

Re: [Qemu-devel] [PATCH v3] net: cadence_gem: fix compilation error when debug is on

2019-06-14 Thread Ramon Fried
On June 15, 2019 8:38:35 AM GMT+03:00, "Philippe Mathieu-Daudé" wrote: >Hi Ramon, > >On 6/15/19 7:15 AM, Ramon Fried wrote: >> defining CADENCE_GEM_ERR_DEBUG causes compilation >> errors, fix that. >> >> Signed-off-by: Ramon Fried >> --- >> v2: change %lx to HWADDR_PRIx and %lx to %zdx >> v3

<    1   2   3   4