[Bug 11963] S3: second resume fails unless BIOS Intel TXT Feature disabled - Thinkpad W500

2013-04-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=11963 Zhang Rui rui.zh...@intel.com changed: What|Removed |Added Blocks||56331 -- Configure

Re: [PATCH v8 4/7] KVM: Add reset/restore rtc_status support

2013-04-09 Thread Gleb Natapov
On Mon, Apr 08, 2013 at 10:17:46PM +0800, Yang Zhang wrote: From: Yang Zhang yang.z.zh...@intel.com Signed-off-by: Yang Zhang yang.z.zh...@intel.com --- arch/x86/kvm/lapic.c |9 +++ arch/x86/kvm/lapic.h |2 + virt/kvm/ioapic.c| 60

RE: [PATCH v8 4/7] KVM: Add reset/restore rtc_status support

2013-04-09 Thread Zhang, Yang Z
Gleb Natapov wrote on 2013-04-09: On Mon, Apr 08, 2013 at 10:17:46PM +0800, Yang Zhang wrote: From: Yang Zhang yang.z.zh...@intel.com Signed-off-by: Yang Zhang yang.z.zh...@intel.com --- arch/x86/kvm/lapic.c |9 +++ arch/x86/kvm/lapic.h |2 + virt/kvm/ioapic.c| 60

Re: [PATCH v8 7/7] KVM: Use eoi to track RTC interrupt delivery status

2013-04-09 Thread Gleb Natapov
On Mon, Apr 08, 2013 at 10:17:49PM +0800, Yang Zhang wrote: From: Yang Zhang yang.z.zh...@intel.com Current interrupt coalescing logci which only used by RTC has conflict with Posted Interrupt. This patch introduces a new mechinism to use eoi to track interrupt: When delivering an interrupt

Re: [PATCH v8 0/7] Use eoi to track RTC interrupt delivery status

2013-04-09 Thread Gleb Natapov
On Mon, Apr 08, 2013 at 10:17:42PM +0800, Yang Zhang wrote: From: Yang Zhang yang.z.zh...@intel.com Current interrupt coalescing logci which only used by RTC has conflict with Posted Interrupt. This patch introduces a new mechinism to use eoi to track interrupt: When delivering an

Re: [PATCH-v2 1/2] virtio-scsi: create VirtIOSCSICommon

2013-04-09 Thread Paolo Bonzini
Il 08/04/2013 23:59, Anthony Liguori ha scritto: This patch refactors existing virtio-scsi code into VirtIOSCSICommon in order to allow virtio_scsi_init_common() to be used by both internal virtio_scsi_init() and external vhost-scsi-pci code. Changes in Patch-v2: - Move

Re: [PATCH v8 2/7] KVM: VMX: Register a new IPI for posted interrupt

2013-04-09 Thread Gleb Natapov
On Mon, Apr 08, 2013 at 10:23:17PM +0800, Yang Zhang wrote: From: Yang Zhang yang.z.zh...@intel.com Posted Interrupt feature requires a special IPI to deliver posted interrupt to guest. And it should has a high priority so the interrupt will not be blocked by others. Normally, the posted

Re: [PATCH v8 4/7] KVM: Call common update function when ioapic entry changed.

2013-04-09 Thread Gleb Natapov
On Mon, Apr 08, 2013 at 10:23:19PM +0800, Yang Zhang wrote: From: Yang Zhang yang.z.zh...@intel.com Both TMR and EOI exit bitmap need to be updated when ioapic changed or vcpu's id/ldr/dfr changed. So use common function instead eoi exit bitmap specific function. Signed-off-by: Yang Zhang

Re: [PATCH v8 7/7] KVM: VMX: Use posted interrupt to deliver virtual interrupt

2013-04-09 Thread Gleb Natapov
On Mon, Apr 08, 2013 at 10:23:22PM +0800, Yang Zhang wrote: From: Yang Zhang yang.z.zh...@intel.com If posted interrupt is avaliable, then uses it to inject virtual interrupt to guest. Signed-off-by: Yang Zhang yang.z.zh...@intel.com --- arch/x86/kvm/lapic.c | 29

Re: [PATCH 5/7 v3] KVM: PPC: exit to user space on ehpriv instruction

2013-04-09 Thread tiejun.chen
On 04/08/2013 06:32 PM, Bharat Bhushan wrote: From: Bharat Bhushan bharat.bhus...@freescale.com ehpriv instruction is used for setting software breakpoints by user space. This patch adds support to exit to user space with run-debug have relevant information. Signed-off-by: Bharat Bhushan

[PATCH v5 0/3] tcm_vhost hotplug

2013-04-09 Thread Asias He
Asias He (3): tcm_vhost: Introduce tcm_vhost_check_feature() tcm_vhost: Add helper to check if endpoint is setup tcm_vhost: Add hotplug/hotunplug support drivers/vhost/tcm_vhost.c | 236 +- drivers/vhost/tcm_vhost.h | 10 ++ 2 files changed, 242

[PATCH v5 1/3] tcm_vhost: Introduce tcm_vhost_check_feature()

2013-04-09 Thread Asias He
This helper is useful to check if a feature is supported. Signed-off-by: Asias He as...@redhat.com Reviewed-by: Stefan Hajnoczi stefa...@redhat.com --- drivers/vhost/tcm_vhost.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/vhost/tcm_vhost.c

[PATCH v5 2/3] tcm_vhost: Add helper to check if endpoint is setup

2013-04-09 Thread Asias He
Signed-off-by: Asias He as...@redhat.com --- drivers/vhost/tcm_vhost.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/vhost/tcm_vhost.c b/drivers/vhost/tcm_vhost.c index f0189bc..7069881 100644 --- a/drivers/vhost/tcm_vhost.c +++ b/drivers/vhost/tcm_vhost.c @@

[PATCH v5 3/3] tcm_vhost: Add hotplug/hotunplug support

2013-04-09 Thread Asias He
In commit 365a7150094 ([SCSI] virtio-scsi: hotplug support for virtio-scsi), hotplug support is added to virtio-scsi. This patch adds hotplug and hotunplug support to tcm_vhost. You can create or delete a LUN in targetcli to hotplug or hotunplug a LUN in guest. Changes in v5: - Switch to int

RE: [PATCH v8 7/7] KVM: VMX: Use posted interrupt to deliver virtual interrupt

2013-04-09 Thread Zhang, Yang Z
Gleb Natapov wrote on 2013-04-09: On Mon, Apr 08, 2013 at 10:23:22PM +0800, Yang Zhang wrote: From: Yang Zhang yang.z.zh...@intel.com If posted interrupt is avaliable, then uses it to inject virtual interrupt to guest. Signed-off-by: Yang Zhang yang.z.zh...@intel.com ---

[PATCH] tcm_vhost: Fix tv_cmd leak in vhost_scsi_handle_vq

2013-04-09 Thread Asias He
If we fail to submit the allocated tv_vmd to tcm_vhost_submission_work, we will leak the tv_vmd. Free tv_vmd on fail path. Signed-off-by: Asias He as...@redhat.com --- drivers/vhost/tcm_vhost.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git

Re: [PATCH] tcm_vhost: Fix tv_cmd leak in vhost_scsi_handle_vq

2013-04-09 Thread Michael S. Tsirkin
On Tue, Apr 09, 2013 at 05:16:33PM +0800, Asias He wrote: If we fail to submit the allocated tv_vmd to tcm_vhost_submission_work, we will leak the tv_vmd. Free tv_vmd on fail path. Signed-off-by: Asias He as...@redhat.com Another one for 3.9 I think. Acked-by: Michael S. Tsirkin

[PATCH] tcm_vhost: Wait for pending requests in vhost_scsi_flush()

2013-04-09 Thread Asias He
This patch makes vhost_scsi_flush() wait for all the pending requests issued before the flush operation to be finished. Changes in v3: - Rebase - Drop 'tcm_vhost: Wait for pending requests in vhost_scsi_clear_endpoint()' in this series, we already did that in 'tcm_vhost: Use vq-private_data

Re: [PATCH 05/11] KVM: nVMX: Refactor handle_vmwrite

2013-04-09 Thread Gleb Natapov
On Sun, Mar 10, 2013 at 06:05:55PM +0200, Abel Gordon wrote: Refactor existent code so we re-use vmcs12_write_any to copy fields from the shadow vmcs specified by the link pointer (used by the processor, implementation-specific) to the VMCS12 software format used by L0 to hold the fields in L1

Re: [PATCH 09/11] KVM: nVMX: Copy VMCS12 to processor-specific shadow vmcs

2013-04-09 Thread Gleb Natapov
On Sun, Mar 10, 2013 at 06:07:56PM +0200, Abel Gordon wrote: Introduce a function used to copy fields from the software controlled VMCS12 to the processor-specific shadow vmcs Signed-off-by: Abel Gordon ab...@il.ibm.com --- arch/x86/kvm/vmx.c | 45

Re: [PATCH 10/11] KVM: nVMX: Synchronize VMCS12 content with the shadow vmcs

2013-04-09 Thread Gleb Natapov
On Mon, Mar 11, 2013 at 09:54:47AM +0200, Abel Gordon wrote: Nadav Har'El n...@math.technion.ac.il wrote on 11/03/2013 12:43:35 AM: On Sun, Mar 10, 2013, Abel Gordon wrote about [PATCH 10/11] KVM: nVMX: Synchronize VMCS12 content with the shadow vmcs: nested_vmx_vmexit(vcpu); +

Re: KVM call agenda for 2013-04-09

2013-04-09 Thread Juan Quintela
Juan Quintela quint...@redhat.com wrote: Hi Today there is a call, there was agenda but I didn't noticed that it was sent as private mail to me: From Abel Gordon: I would like to present a technical report we just published that describes the design and evaluation of the work we did to

Re: [Qemu-devel] KVM call agenda for 2013-04-09

2013-04-09 Thread Stefan Hajnoczi
Meeting notes on Abel's presentation: Aim: improve vhost scalability Shared vhost thread == Problem: Linux scheduler does not see state of virtqueues, cannot make good scheduling decisions Solution: Shared thread serves multiple VMs and therefore influences I/O scheduling instead of

Re: [PATCH] tcm_vhost: Fix tv_cmd leak in vhost_scsi_handle_vq

2013-04-09 Thread Nicholas A. Bellinger
On Tue, 2013-04-09 at 17:16 +0800, Asias He wrote: If we fail to submit the allocated tv_vmd to tcm_vhost_submission_work, we will leak the tv_vmd. Free tv_vmd on fail path. Signed-off-by: Asias He as...@redhat.com --- drivers/vhost/tcm_vhost.c | 11 --- 1 file changed, 8

Re: Virtualbox svga card in KVM

2013-04-09 Thread Yan Vugenfirer
On Apr 6, 2013, at 2:52 AM, Sriram Murthy wrote: For starters, virtual box has better SVGA WDDM drivers that allows for a much richer display when the VM display is local. Does it support S3 and S4 with Windows 8? Yan. I am yet to completely understand both the KVM and the virtualbox SVGA

Re: [PATCH v8 0/7] Use eoi to track RTC interrupt delivery status

2013-04-09 Thread Paolo Bonzini
Il 09/04/2013 09:08, Gleb Natapov ha scritto: Current interrupt coalescing logci which only used by RTC has conflict with Posted Interrupt. This patch introduces a new mechinism to use eoi to track interrupt: When delivering an interrupt to vcpu, the pending_eoi set to number of vcpu

Re: [PATCH v8 6/7] KVM: VMX: Add the algorithm of deliver posted interrupt

2013-04-09 Thread Paolo Bonzini
Il 08/04/2013 16:23, Yang Zhang ha scritto: + * interrupt from PIR in next vmentry. + */ +static void vmx_deliver_posted_interrupt(struct kvm_vcpu *vcpu, int vector) +{ + struct vcpu_vmx *vmx = to_vmx(vcpu); + int r; + + if (pi_test_and_set_pir(vector, vmx-pi_desc)) +

Re: [Qemu-devel] Virtualbox svga card in KVM

2013-04-09 Thread Andreas Färber
Hi, Am 08.04.2013 18:05, schrieb Sriram Murthy: The Virtualbox SVGA card was derived out of the KVM VGA card, so there are quite a few similarities (I am deliberately being vague here as I am still in the process of discovering the features of both these cards completely). Having said

kvmtool : [PATCH] PowerPc : Fix compilation for ppc64

2013-04-09 Thread Prerna Saxena
'lkvm' compilation on ppc64 fails with the following error : ...[snip].. LINK guest/init LINK lkvm /usr/bin/ld: powerpc:common architecture of input file `guest/guest_init.o' is incompatible with powerpc:common64 output collect2: ld returned 1 exit status make: *** [lkvm] Error 1 This

RE: RFC: vfio API changes needed for powerpc (v3)

2013-04-09 Thread Bhushan Bharat-R65777
So now the sequence would be something like: 1)VFIO_GROUP_SET_CONTAINER // add groups to the container 2)VFIO_SET_IOMMU(VFIO_FSL_PAMU)// set iommu model 3)count = VFIO_IOMMU_GET_MSI_BANK_COUNT// returns max # of MSI banks 4)

PCI-passthrough on AMD - OpenVox A400P

2013-04-09 Thread Daniel Bareiro
Hi all! I've a cluster (active/passive) with two KVM VM with Asterisk and Pacemaker+Corosync. I wonder if anyone tried to use a OpenVox A400P card from a virtual machine. My idea is to have both nodes accessing this card. I don't know if it is possible, I wish that in this scenario when a

Re: PCI-passthrough on AMD - OpenVox A400P

2013-04-09 Thread Alex Williamson
On Tue, 2013-04-09 at 14:58 -0300, Daniel Bareiro wrote: Hi all! I've a cluster (active/passive) with two KVM VM with Asterisk and Pacemaker+Corosync. I wonder if anyone tried to use a OpenVox A400P card from a virtual machine. My idea is to have both nodes accessing this card. I

[GIT PULL] vfio fix for 3.9-rc7

2013-04-09 Thread Alex Williamson
Hi Linus, Here's one small fix for vfio that I'd like to get in for 3.9; tightening the range checking around a vfio ioctl. Thanks! Alex The following changes since commit 25e9789ddd9d14a8971f4a421d04f282719ab733: vfio: include linux/slab.h for kmalloc (2013-03-15 12:58:20 -0600) are

Re: [GIT PULL] vfio fix for 3.9-rc7

2013-04-09 Thread richard -rw- weinberger
On Tue, Apr 9, 2013 at 9:05 PM, Alex Williamson alex.william...@redhat.com wrote: Hi Linus, Here's one small fix for vfio that I'd like to get in for 3.9; tightening the range checking around a vfio ioctl. Thanks! Alex The following changes since commit

Re: [GIT PULL] vfio fix for 3.9-rc7

2013-04-09 Thread Alex Williamson
On Tue, 2013-04-09 at 21:40 +0200, richard -rw- weinberger wrote: On Tue, Apr 9, 2013 at 9:05 PM, Alex Williamson alex.william...@redhat.com wrote: Hi Linus, Here's one small fix for vfio that I'd like to get in for 3.9; tightening the range checking around a vfio ioctl. Thanks!

[PATCH] KVM: PPC: emulate dcbst

2013-04-09 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- arch/powerpc/kvm/emulate.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/kvm/emulate.c b/arch/powerpc/kvm/emulate.c index 7a73b6f..631a265 100644 ---

Re: [PATCH 2/7 v3] Rename EMULATE_DO_PAPR to EMULATE_EXIT_USER

2013-04-09 Thread Paul Mackerras
On Mon, Apr 08, 2013 at 04:02:13PM +0530, Bharat Bhushan wrote: Instruction emulation return EMULATE_DO_PAPR when it requires exit to userspace on book3s. Similar return is required for booke. EMULATE_DO_PAPR reads out to be confusing so it is renamed to EMULATE_EXIT_USER. This and the

[RFC PATCH] Emulate MOVBE

2013-04-09 Thread Borislav Petkov
Hi guys, so I was trying to repro tglx's bug in smpboot.c and for some reason, the most reliable way to trigger it was to boot an 32-bit atom smp guest in kvm (don't ask :)). The problem, however, was that atom wants MOVBE and qemu doesn't emulate it yet (except Richard's patches which I used in

Re: [RFC PATCH] Emulate MOVBE

2013-04-09 Thread Borislav Petkov
On Wed, Apr 10, 2013 at 01:46:02AM +0200, Borislav Petkov wrote: +static int em_movbe(struct x86_emulate_ctxt *ctxt) +{ + char *valptr = ctxt-src.valptr; + + switch (ctxt-op_bytes) { + case 2: + *(u16 *)valptr = swab16(*(u16 *)valptr); + break; +

Re: [RFC PATCH] Emulate MOVBE

2013-04-09 Thread H. Peter Anvin
On 04/09/2013 05:03 PM, Borislav Petkov wrote: Note to self: this destroys the src operand but it shouldn't. Fix it tomorrow. I thought movbe was already in qemu just not on by default...? -hpa -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a

RE: [PATCH v8 6/7] KVM: VMX: Add the algorithm of deliver posted interrupt

2013-04-09 Thread Zhang, Yang Z
Paolo Bonzini wrote on 2013-04-10: Il 08/04/2013 16:23, Yang Zhang ha scritto: + * interrupt from PIR in next vmentry. + */ +static void vmx_deliver_posted_interrupt(struct kvm_vcpu *vcpu, int vector) +{ +struct vcpu_vmx *vmx = to_vmx(vcpu); +int r; + +if

RE: [PATCH] KVM: PPC: emulate dcbst

2013-04-09 Thread Yoder Stuart-B08248
-Original Message- From: Yoder Stuart-B08248 Sent: Tuesday, April 09, 2013 3:36 PM To: ag...@suse.de Cc: kvm-...@vger.kernel.org; kvm@vger.kernel.org; Yoder Stuart-B08248 Subject: [PATCH] KVM: PPC: emulate dcbst From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by:

[PATCH 0/3] tcm_vhost fix cmd leak and bad target

2013-04-09 Thread Asias He
Asias He (3): tcm_vhost: Fix tv_cmd leak in vhost_scsi_handle_vq tcm_vhost: Add vhost_scsi_send_bad_target() helper tcm_vhost: Send bad target to guest when cmd fails drivers/vhost/tcm_vhost.c | 44 1 file changed, 28 insertions(+), 16

[PATCH 1/3] tcm_vhost: Fix tv_cmd leak in vhost_scsi_handle_vq

2013-04-09 Thread Asias He
If we fail to submit the allocated tv_vmd to tcm_vhost_submission_work, we will leak the tv_vmd. Free tv_vmd on fail path. Signed-off-by: Asias He as...@redhat.com --- drivers/vhost/tcm_vhost.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/vhost/tcm_vhost.c

[PATCH 2/3] tcm_vhost: Add vhost_scsi_send_bad_target() helper

2013-04-09 Thread Asias He
Share the send bad target code with other use cases. Signed-off-by: Asias He as...@redhat.com --- drivers/vhost/tcm_vhost.c | 31 ++- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/drivers/vhost/tcm_vhost.c b/drivers/vhost/tcm_vhost.c index

[PATCH 3/3] tcm_vhost: Send bad target to guest when cmd fails

2013-04-09 Thread Asias He
Send bad target to guest in case: 1) we can not allocate the cmd 2) fail to submit the cmd Signed-off-by: Asias He as...@redhat.com --- drivers/vhost/tcm_vhost.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/vhost/tcm_vhost.c b/drivers/vhost/tcm_vhost.c

Re: [PATCH] tcm_vhost: Fix tv_cmd leak in vhost_scsi_handle_vq

2013-04-09 Thread Asias He
On Tue, Apr 09, 2013 at 08:46:42AM -0700, Nicholas A. Bellinger wrote: On Tue, 2013-04-09 at 17:16 +0800, Asias He wrote: If we fail to submit the allocated tv_vmd to tcm_vhost_submission_work, we will leak the tv_vmd. Free tv_vmd on fail path. Signed-off-by: Asias He as...@redhat.com

Re: [PATCH 5/7 v3] KVM: PPC: exit to user space on ehpriv instruction

2013-04-09 Thread tiejun.chen
On 04/08/2013 06:32 PM, Bharat Bhushan wrote: From: Bharat Bhushan bharat.bhus...@freescale.com ehpriv instruction is used for setting software breakpoints by user space. This patch adds support to exit to user space with run-debug have relevant information. Signed-off-by: Bharat Bhushan

[PATCH] KVM: PPC: emulate dcbst

2013-04-09 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- arch/powerpc/kvm/emulate.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/kvm/emulate.c b/arch/powerpc/kvm/emulate.c index 7a73b6f..631a265 100644 ---