RE: [E1000-devel] [Bug 56981] New: [SR-IOV] Intel I350 NIC VF cannot work in a Windows 2008 guest.

2013-04-24 Thread Ren, Yongjie
-Original Message- From: Shah, Ashish N Sent: Wednesday, April 24, 2013 4:31 AM To: Rose, Gregory V; Ren, Yongjie; e1000-de...@lists.sourceforge.net; kvm@vger.kernel.org Subject: RE: [E1000-devel] [Bug 56981] New: [SR-IOV] Intel I350 NIC VF cannot work in a Windows 2008 guest.

Re: [PATCH] kvm tools: virtio-net mergable rx buffers

2013-04-24 Thread Pekka Enberg
Hi, On 04/23/2013 12:35 PM, Eric Northup wrote: Do you care about guests with drivers that don't negotiate VIRTIO_NET_F_MRG_RXBUF? On Wed, Apr 24, 2013 at 5:51 AM, Sasha Levin sasha.le...@oracle.com wrote: We usually try to keep backward compatibility, but in this case mergable RX buffers

[Bug 56981] [SR-IOV] Intel I350 NIC VF cannot work in a Windows 2008 guest.

2013-04-24 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=56981 Jay Ren yongjie@intel.com changed: What|Removed |Added Status|NEW |RESOLVED

[Bug 56981] [SR-IOV] Intel I350 NIC VF cannot work in a Windows 2008 guest.

2013-04-24 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=56981 Jay Ren yongjie@intel.com changed: What|Removed |Added Status|RESOLVED|CLOSED -- Configure

Re: [Bug 53611] New: nVMX: Add nested EPT

2013-04-24 Thread Jan Kiszka
On 2013-03-22 17:45, Jan Kiszka wrote: On 2013-03-22 07:23, Nakajima, Jun wrote: On Mon, Mar 4, 2013 at 8:45 PM, Nakajima, Jun jun.nakaj...@intel.com wrote: I have some updates on this. We rebased the patched to the latest KVM (L0). It turned out that the version of L1 KVM/Linux matters. At

Re: [PATCH] kvm tools: remove arbitrary minimum RAM limitation

2013-04-24 Thread Pekka Enberg
On 04/23/2013 05:57 PM, Sasha Levin wrote: We don't really need 64MB of RAM to boot, it's a nice default if we don't have anything else - but it's not actually required for anything: sh-4.2# free -h total used free sharedbuffers cached Mem: 20M

Re: [Qemu-devel] KVM call minutes for 2013-04-23

2013-04-24 Thread Stefan Hajnoczi
On Tue, Apr 23, 2013 at 10:06:41AM -0600, Eric Blake wrote: On 04/23/2013 08:45 AM, Juan Quintela wrote: we can change drive_mirror to use a new command to see if there are the new features. drive-mirror changed in 1.4 to add optional buf-size parameter; right now, libvirt is forced

Re: [PATCH] kvm tools: remove arbitrary minimum RAM limitation

2013-04-24 Thread Michael Ellerman
On Tue, 2013-04-23 at 10:57 -0400, Sasha Levin wrote: We don't really need 64MB of RAM to boot, it's a nice default if we don't have anything else - but it's not actually required for anything: Nice, I am carrying something similar locally so I can boot in 4K :) cheers -- To unsubscribe from

Re: [PATCH -v2] kvm: Emulate MOVBE

2013-04-24 Thread Borislav Petkov
On Tue, Apr 23, 2013 at 04:50:43PM -0700, H. Peter Anvin wrote: On 04/23/2013 04:41 PM, Borislav Petkov wrote: Btw, in thinking about this more, I'm kinda sceptical we want to use the CPUID layout for this new KVM_GET_EMULATED_* ioctl. And the reason why I'm sceptical is that not every

Re: [PATCH -v2] kvm: Emulate MOVBE

2013-04-24 Thread Gleb Natapov
On Tue, Apr 23, 2013 at 04:50:43PM -0700, H. Peter Anvin wrote: On 04/23/2013 04:41 PM, Borislav Petkov wrote: Btw, in thinking about this more, I'm kinda sceptical we want to use the CPUID layout for this new KVM_GET_EMULATED_* ioctl. And the reason why I'm sceptical is that not every

Re: [PATCH] kvm tools: virtio-net mergable rx buffers

2013-04-24 Thread Michael S. Tsirkin
On Wed, Apr 24, 2013 at 09:51:57AM +0300, Pekka Enberg wrote: Hi, On 04/23/2013 12:35 PM, Eric Northup wrote: Do you care about guests with drivers that don't negotiate VIRTIO_NET_F_MRG_RXBUF? On Wed, Apr 24, 2013 at 5:51 AM, Sasha Levin sasha.le...@oracle.com wrote: We usually try to

Re: [PATCH v3 11/32] arm64: KVM: CPU specific system registers handling

2013-04-24 Thread Marc Zyngier
On 23/04/13 23:59, Christoffer Dall wrote: On Fri, Apr 12, 2013 at 05:04:14PM +0100, Marc Zyngier wrote: On 10/04/13 18:06, Will Deacon wrote: On Mon, Apr 08, 2013 at 05:17:13PM +0100, Marc Zyngier wrote: Add the support code for CPU specific system registers. Not much here yet.

Re: [PATCH v8 3/3] tcm_vhost: Add ioctl to get and set events missed flag

2013-04-24 Thread Michael S. Tsirkin
On Wed, Apr 24, 2013 at 11:32:24AM +0800, Asias He wrote: Signed-off-by: Asias He as...@redhat.com Looks like a good idea to me. I missed this patch previously, thanks for addressing this. Some implementation comments below. --- drivers/vhost/tcm_vhost.c | 16

Re: [PATCH v8 2/3] tcm_vhost: Add hotplug/hotunplug support

2013-04-24 Thread Michael S. Tsirkin
On Wed, Apr 24, 2013 at 11:32:23AM +0800, Asias He wrote: 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

Re: [PATCH] kvm tools: remove arbitrary minimum RAM limitation

2013-04-24 Thread Asias He
On Wed, Apr 24, 2013 at 06:25:30PM +1000, Michael Ellerman wrote: On Tue, 2013-04-23 at 10:57 -0400, Sasha Levin wrote: We don't really need 64MB of RAM to boot, it's a nice default if we don't have anything else - but it's not actually required for anything: Nice, I am carrying something

Re: [PATCH] kvm tools: virtio-net mergable rx buffers

2013-04-24 Thread Michael S. Tsirkin
On Wed, Apr 24, 2013 at 01:32:56PM +0800, Asias He wrote: On Mon, Apr 22, 2013 at 08:32:27PM -0400, Sasha Levin wrote: Support mergable rx buffers for virtio-net. This helps reduce the amount of memory the guest kernel has to allocate per rx vq. With this, we always do an extra copy of the

Re: [PATCH v3 03/32] arm64: KVM: HYP mode idmap support

2013-04-24 Thread Marc Zyngier
On 23/04/13 23:57, Christoffer Dall wrote: On Mon, Apr 8, 2013 at 9:17 AM, Marc Zyngier marc.zyng...@arm.com wrote: Add the necessary infrastructure for identity-mapped HYP page tables. Idmap-ed code must be in the .hyp.idmap.text linker section. The rest of the HYP ends up in .hyp.text.

Re: [PATCH 2/7] KVM: Introduce __KVM_HAVE_IRQCHIP

2013-04-24 Thread Gleb Natapov
On Wed, Apr 17, 2013 at 02:16:59PM +0200, Alexander Graf wrote: On 17.04.2013, at 14:15, Paolo Bonzini wrote: Il 17/04/2013 14:10, Alexander Graf ha scritto: Still, __KVM_HAVE_IRQCHIP is clearly a subset of __KVM_HAVE_IOAPIC; defining one without the other makes no sense and will

Re: [PATCH v3 07/32] arm64: KVM: fault injection into a guest

2013-04-24 Thread Marc Zyngier
On 23/04/13 23:57, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:09PM +0100, Marc Zyngier wrote: Implement the injection of a fault (undefined, data abort or prefetch abort) into a 64bit guest. Reviewed-by: Christopher Covington c...@codeaurora.org Signed-off-by: Marc Zyngier

Re: [PATCH v8 2/3] tcm_vhost: Add hotplug/hotunplug support

2013-04-24 Thread Asias He
On Wed, Apr 24, 2013 at 12:18:33PM +0300, Michael S. Tsirkin wrote: On Wed, Apr 24, 2013 at 11:32:23AM +0800, Asias He wrote: In commit 365a7150094 ([SCSI] virtio-scsi: hotplug support for virtio-scsi), hotplug support is added to virtio-scsi. This patch adds hotplug and hotunplug

Re: [PATCH 0/7] KVM: irqfd generalization prepare patch set

2013-04-24 Thread Gleb Natapov
On Tue, Apr 16, 2013 at 07:26:08PM +0200, Alexander Graf wrote: The concept of an irqfd and interrupt routing are nothing particularly tied into the IOAPIC implementation. In fact, most of the code already is perfectly generic. This patch set decouples most bits of the existing irqchip and

[PATCH] fix source operand decoding for 8bit mov[zs]x instructions

2013-04-24 Thread Gleb Natapov
Source operand for one byte mov[zs]x is decoded incorrectly if it is in high byte register. Fix that. Cc: sta...@vger.kernel.org Signed-off-by: Gleb Natapov g...@redhat.com diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 46f63b8..8e517bb 100644 --- a/arch/x86/kvm/emulate.c

Re: [PATCH v8 2/3] tcm_vhost: Add hotplug/hotunplug support

2013-04-24 Thread Michael S. Tsirkin
On Wed, Apr 24, 2013 at 06:06:25PM +0800, Asias He wrote: On Wed, Apr 24, 2013 at 12:18:33PM +0300, Michael S. Tsirkin wrote: On Wed, Apr 24, 2013 at 11:32:23AM +0800, Asias He wrote: In commit 365a7150094 ([SCSI] virtio-scsi: hotplug support for virtio-scsi), hotplug support is added to

[PATCH unit test] add test for mov[zs]x %ah, ... instruction

2013-04-24 Thread Gleb Natapov
Signed-off-by: Gleb Natapov g...@redhat.com diff --git a/x86/realmode.c b/x86/realmode.c index f5426e0..91c93a9 100644 --- a/x86/realmode.c +++ b/x86/realmode.c @@ -1358,12 +1358,19 @@ static void test_movzx_movsx(void) { MK_INSN(movsx, movsx %al, %ebx); MK_INSN(movzx, movzx %al,

Re: [PATCH v8 2/3] tcm_vhost: Add hotplug/hotunplug support

2013-04-24 Thread Michael S. Tsirkin
On Wed, Apr 24, 2013 at 06:06:25PM +0800, Asias He wrote: +{ + + struct vhost_scsi *vs = tpg-vhost_scsi; + struct vhost_virtqueue *vq; + u32 reason; + int ret; + + mutex_lock(tpg-tv_tpg_mutex); + vs = tpg-vhost_scsi; + mutex_unlock(tpg-tv_tpg_mutex); + if (!vs)

Re: [PATCH v3 08/32] arm64: KVM: architecture specific MMU backend

2013-04-24 Thread Marc Zyngier
On 23/04/13 23:58, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:10PM +0100, Marc Zyngier wrote: Define the arm64 specific MMU backend: - HYP/kernel VA offset - S2 4/64kB definitions - S2 page table populating and flushing - icache cleaning Reviewed-by: Christopher Covington

Re: [PATCH v3 08/32] arm64: KVM: architecture specific MMU backend

2013-04-24 Thread Will Deacon
On Wed, Apr 24, 2013 at 12:03:10PM +0100, Marc Zyngier wrote: On 23/04/13 23:58, Christoffer Dall wrote: I noticed that this doesn't do any cache cleaning. Are the MMU page table walks guaranteed to be coherent with the MMU on arm64? I suppose you meant the cache. In this case, yes. The

Re: [PATCH v3 15/32] arm64: KVM: guest one-reg interface

2013-04-24 Thread Marc Zyngier
On 23/04/13 23:59, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:17PM +0100, Marc Zyngier wrote: Let userspace play with the guest registers. Reviewed-by: Christopher Covington c...@codeaurora.org Signed-off-by: Marc Zyngier marc.zyng...@arm.com --- arch/arm64/kvm/guest.c | 254

Re: [PATCH v3 17/32] arm64: KVM: HYP mode world switch implementation

2013-04-24 Thread Marc Zyngier
On 23/04/13 23:59, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:19PM +0100, Marc Zyngier wrote: The HYP mode world switch in all its glory. Implements save/restore of host/guest registers, EL2 trapping, IPA resolution, and additional services (tlb invalidation). Reviewed-by:

Re: [PATCH v3 19/32] arm64: KVM: Plug the VGIC

2013-04-24 Thread Marc Zyngier
On 24/04/13 00:00, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:21PM +0100, Marc Zyngier wrote: Add support for the in-kernel GIC emulation. The include file is a complete duplicate of the 32bit one - something to fix at one point. seems like something that should be fixed sooner

Re: [PATCH v3 20/32] arm64: KVM: Plug the arch timer

2013-04-24 Thread Marc Zyngier
On 24/04/13 00:00, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:22PM +0100, Marc Zyngier wrote: Add support for the in-kernel timer emulation. The include file is a complete duplicate of the 32bit one - something to fix at one point. again, I'd really like to see this fixed before

Re: [PATCH v2 6/6] KVM: MMU: init kvm generation close to mmio wrap-around value

2013-04-24 Thread Gleb Natapov
On Mon, Apr 01, 2013 at 05:56:49PM +0800, Xiao Guangrong wrote: Then it has chance to trigger mmio generation number wrap-around Signed-off-by: Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com --- arch/x86/include/asm/kvm_host.h |1 + arch/x86/kvm/mmu.c |8

Re: [PATCH v3 24/32] arm64: KVM: 32bit GP register access

2013-04-24 Thread Marc Zyngier
On 24/04/13 00:00, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:26PM +0100, Marc Zyngier wrote: Allow access to the 32bit register file through the usual API. Reviewed-by: Christopher Covington c...@codeaurora.org Signed-off-by: Marc Zyngier marc.zyng...@arm.com ---

Re: [PATCH v3 25/32] arm64: KVM: 32bit conditional execution emulation

2013-04-24 Thread Marc Zyngier
On 24/04/13 00:00, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:27PM +0100, Marc Zyngier wrote: As conditional instructions can trap on AArch32, add the thinest possible emulation layer to keep 32bit guests happy. Reviewed-by: Christopher Covington c...@codeaurora.org Signed-off-by:

Re: [PATCH v2 3/6] KVM: MMU: make return value of mmio page fault handler more readable

2013-04-24 Thread Gleb Natapov
On Mon, Apr 01, 2013 at 05:56:46PM +0800, Xiao Guangrong wrote: Define some meaningful names instead of raw code Signed-off-by: Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com --- arch/x86/kvm/mmu.c | 15 +-- arch/x86/kvm/mmu.h | 14 ++ arch/x86/kvm/vmx.c |

Re: [PATCH v3 10/32] arm64: KVM: system register handling

2013-04-24 Thread Marc Zyngier
On 24/04/13 00:01, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:12PM +0100, Marc Zyngier wrote: Provide 64bit system register handling, modeled after the cp15 handling for ARM. Reviewed-by: Christopher Covington c...@codeaurora.org Signed-off-by: Marc Zyngier marc.zyng...@arm.com

Re: [PATCH v3 26/32] arm64: KVM: 32bit handling of coprocessor traps

2013-04-24 Thread Marc Zyngier
On 24/04/13 00:01, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:28PM +0100, Marc Zyngier wrote: Provide the necessary infrastructure to trap coprocessor accesses that occur when running 32bit guests. Also wire SMC and HVC trapped in 32bit mode while were at it. Reviewed-by:

Re: [PATCH v3 29/32] arm64: KVM: 32bit guest fault injection

2013-04-24 Thread Marc Zyngier
On 24/04/13 00:02, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:31PM +0100, Marc Zyngier wrote: Add fault injection capability for 32bit guests. looks ok, but seems we are duplicating some functionality here, but I realize it may not be that easy to share due to different define

Re: [PATCH v3 30/32] arm64: KVM: enable initialization of a 32bit vcpu

2013-04-24 Thread Marc Zyngier
On 24/04/13 00:02, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:32PM +0100, Marc Zyngier wrote: Wire the init of a 32bit vcpu by allowing 32bit modes in pstate, and providing sensible defaults out of reset state. This feature is of course conditioned by the presence of 32bit

Re: [PATCH v3 31/32] arm64: KVM: userspace API documentation

2013-04-24 Thread Marc Zyngier
On 24/04/13 00:02, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:33PM +0100, Marc Zyngier wrote: Unsurprisingly, the arm64 userspace API is extremely similar to the 32bit one, the only significant difference being the ONE_REG register mapping. Signed-off-by: Marc Zyngier

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

2013-04-24 Thread Veruca Salt
Date: Mon, 15 Apr 2013 14:26:25 +0200 From: kra...@redhat.com To: peter.mayd...@linaro.org CC: srira...@yahoo.com; stefa...@gmail.com; qemu-de...@nongnu.org; kvm@vger.kernel.org Subject: Re: [Qemu-devel] Virtualbox svga card in KVM On 04/08/13

Re: KVM call minutes for 2013-04-23

2013-04-24 Thread Anthony Liguori
Eric Blake ebl...@redhat.com writes: On 04/23/2013 08:45 AM, Juan Quintela wrote: * 1.5 pending patches (paolo) anthony thinks nothing big is outstanding rdma: not probably for this release, too big change on migration cpu-hotplug: andreas expect to get it for 1.5 * What can

Re: [Qemu-devel] KVM call minutes for 2013-04-23

2013-04-24 Thread Luiz Capitulino
On Tue, 23 Apr 2013 10:06:41 -0600 Eric Blake ebl...@redhat.com wrote: we can change drive_mirror to use a new command to see if there are the new features. drive-mirror changed in 1.4 to add optional buf-size parameter; right now, libvirt is forced to limit itself to 1.3 interface

Re: [Qemu-devel] KVM call minutes for 2013-04-23

2013-04-24 Thread Luiz Capitulino
On Wed, 24 Apr 2013 10:03:21 +0200 Stefan Hajnoczi stefa...@gmail.com wrote: On Tue, Apr 23, 2013 at 10:06:41AM -0600, Eric Blake wrote: On 04/23/2013 08:45 AM, Juan Quintela wrote: we can change drive_mirror to use a new command to see if there are the new features.

Re: [Bug 53611] New: nVMX: Add nested EPT

2013-04-24 Thread Nakajima, Jun
On Wed, Apr 24, 2013 at 12:25 AM, Jan Kiszka jan.kis...@web.de wrote: I don't have a full picture (already asked you to post / git-push your intermediate state), but nested related states typically go to nested_vmx, thus vcpu_vmx. Ping regarding publication. I'm about to redo your porting

Re: [Bug 53611] New: nVMX: Add nested EPT

2013-04-24 Thread Jan Kiszka
On 2013-04-24 17:55, Nakajima, Jun wrote: On Wed, Apr 24, 2013 at 12:25 AM, Jan Kiszka jan.kis...@web.de wrote: I don't have a full picture (already asked you to post / git-push your intermediate state), but nested related states typically go to nested_vmx, thus vcpu_vmx. Ping regarding

Re: [PATCH v3 07/32] arm64: KVM: fault injection into a guest

2013-04-24 Thread Christoffer Dall
On Wed, Apr 24, 2013 at 3:04 AM, Marc Zyngier marc.zyng...@arm.com wrote: On 23/04/13 23:57, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:09PM +0100, Marc Zyngier wrote: Implement the injection of a fault (undefined, data abort or prefetch abort) into a 64bit guest. Reviewed-by:

Re: [PATCH v3 08/32] arm64: KVM: architecture specific MMU backend

2013-04-24 Thread Christoffer Dall
On Wed, Apr 24, 2013 at 4:10 AM, Will Deacon will.dea...@arm.com wrote: On Wed, Apr 24, 2013 at 12:03:10PM +0100, Marc Zyngier wrote: On 23/04/13 23:58, Christoffer Dall wrote: I noticed that this doesn't do any cache cleaning. Are the MMU page table walks guaranteed to be coherent with the

Re: [PATCH v3 08/32] arm64: KVM: architecture specific MMU backend

2013-04-24 Thread Christoffer Dall
On Wed, Apr 24, 2013 at 4:03 AM, Marc Zyngier marc.zyng...@arm.com wrote: On 23/04/13 23:58, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:10PM +0100, Marc Zyngier wrote: Define the arm64 specific MMU backend: - HYP/kernel VA offset - S2 4/64kB definitions - S2 page table populating

Re: [PATCH v3 15/32] arm64: KVM: guest one-reg interface

2013-04-24 Thread Christoffer Dall
On Wed, Apr 24, 2013 at 4:27 AM, Marc Zyngier marc.zyng...@arm.com wrote: On 23/04/13 23:59, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:17PM +0100, Marc Zyngier wrote: Let userspace play with the guest registers. Reviewed-by: Christopher Covington c...@codeaurora.org

Re: [PATCH v3 17/32] arm64: KVM: HYP mode world switch implementation

2013-04-24 Thread Christoffer Dall
On Wed, Apr 24, 2013 at 4:39 AM, Marc Zyngier marc.zyng...@arm.com wrote: On 23/04/13 23:59, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:19PM +0100, Marc Zyngier wrote: The HYP mode world switch in all its glory. Implements save/restore of host/guest registers, EL2 trapping, IPA

Re: [PATCH v3 24/32] arm64: KVM: 32bit GP register access

2013-04-24 Thread Christoffer Dall
On Wed, Apr 24, 2013 at 6:06 AM, Marc Zyngier marc.zyng...@arm.com wrote: On 24/04/13 00:00, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:26PM +0100, Marc Zyngier wrote: Allow access to the 32bit register file through the usual API. Reviewed-by: Christopher Covington

Re: [PATCH v3 25/32] arm64: KVM: 32bit conditional execution emulation

2013-04-24 Thread Christoffer Dall
On Wed, Apr 24, 2013 at 6:13 AM, Marc Zyngier marc.zyng...@arm.com wrote: On 24/04/13 00:00, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:27PM +0100, Marc Zyngier wrote: As conditional instructions can trap on AArch32, add the thinest possible emulation layer to keep 32bit guests

Re: [PATCH v3 26/32] arm64: KVM: 32bit handling of coprocessor traps

2013-04-24 Thread Christoffer Dall
On Wed, Apr 24, 2013 at 6:42 AM, Marc Zyngier marc.zyng...@arm.com wrote: On 24/04/13 00:01, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:28PM +0100, Marc Zyngier wrote: Provide the necessary infrastructure to trap coprocessor accesses that occur when running 32bit guests. Also wire

Re: [PATCH v3 29/32] arm64: KVM: 32bit guest fault injection

2013-04-24 Thread Christoffer Dall
On Wed, Apr 24, 2013 at 6:46 AM, Marc Zyngier marc.zyng...@arm.com wrote: On 24/04/13 00:02, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:31PM +0100, Marc Zyngier wrote: Add fault injection capability for 32bit guests. looks ok, but seems we are duplicating some functionality here,

Re: [PATCH v3 30/32] arm64: KVM: enable initialization of a 32bit vcpu

2013-04-24 Thread Christoffer Dall
On Wed, Apr 24, 2013 at 6:49 AM, Marc Zyngier marc.zyng...@arm.com wrote: On 24/04/13 00:02, Christoffer Dall wrote: On Mon, Apr 08, 2013 at 05:17:32PM +0100, Marc Zyngier wrote: Wire the init of a 32bit vcpu by allowing 32bit modes in pstate, and providing sensible defaults out of reset

Re: [PATCH] kvm tools: remove arbitrary minimum RAM limitation

2013-04-24 Thread Sasha Levin
On 04/24/2013 04:25 AM, Michael Ellerman wrote: On Tue, 2013-04-23 at 10:57 -0400, Sasha Levin wrote: We don't really need 64MB of RAM to boot, it's a nice default if we don't have anything else - but it's not actually required for anything: Nice, I am carrying something similar locally so I

Re: [Qemu-devel] KVM call minutes for 2013-04-23

2013-04-24 Thread Eric Blake
On 04/23/2013 10:06 AM, Eric Blake wrote: we can change drive_mirror to use a new command to see if there are the new features. drive-mirror changed in 1.4 to add optional buf-size parameter; right now, libvirt is forced to limit itself to 1.3 interface (no buf-size or granularity)

Re: [Qemu-devel] Para-Virtualized Clock Usage

2013-04-24 Thread Marcelo Tosatti
On Tue, Apr 23, 2013 at 08:52:16AM +0300, Gleb Natapov wrote: On Mon, Apr 22, 2013 at 04:58:01PM +, Joji Mekkattuparamban (joji) wrote: Greetings, I have a SMP guest application, running on the 2.6.27 Linux kernel. The application, originally written for bare metal, makes extensive

RE: [Qemu-devel] Para-Virtualized Clock Usage

2013-04-24 Thread Joji Mekkattuparamban (joji)
Thank you Gleb and Marcelo. I will migrate the API using gettimeofday. Is there any dependency on the QEMU or the Guest? If the host supports pvclock and the guest invokes gettimeofday, would the pvclock be automatically used? Or do I require a patch in either the Qemu or the guest kernel?

[PATCH v9 0/3] tcm_vhost hotplug

2013-04-24 Thread Asias He
Asias He (3): tcm_vhost: Refactor the lock nesting rule tcm_vhost: Add hotplug/hotunplug support tcm_vhost: Add ioctl to get and set events missed flag drivers/vhost/tcm_vhost.c | 263 +++--- drivers/vhost/tcm_vhost.h | 13 +++ 2 files changed, 260

[PATCH v9 1/3] tcm_vhost: Refactor the lock nesting rule

2013-04-24 Thread Asias He
We want to use tcm_vhost_mutex to make sure hotplug/hotunplug will not happen when set_endpoint/clear_endpoint is in process. Signed-off-by: Asias He as...@redhat.com --- drivers/vhost/tcm_vhost.c | 32 +++- 1 file changed, 19 insertions(+), 13 deletions(-) diff

[PATCH v9 2/3] tcm_vhost: Add hotplug/hotunplug support

2013-04-24 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 v8: - Use vq-mutex for

[PATCH v9 3/3] tcm_vhost: Add ioctl to get and set events missed flag

2013-04-24 Thread Asias He
Signed-off-by: Asias He as...@redhat.com --- drivers/vhost/tcm_vhost.c | 17 + drivers/vhost/tcm_vhost.h | 3 +++ 2 files changed, 20 insertions(+) diff --git a/drivers/vhost/tcm_vhost.c b/drivers/vhost/tcm_vhost.c index 137ae34..9c01d2a 100644 --- a/drivers/vhost/tcm_vhost.c

Re: [PATCH v9 1/3] tcm_vhost: Refactor the lock nesting rule

2013-04-24 Thread Michael S. Tsirkin
On Thu, Apr 25, 2013 at 11:10:04AM +0800, Asias He wrote: We want to use tcm_vhost_mutex to make sure hotplug/hotunplug will not happen when set_endpoint/clear_endpoint is in process. Signed-off-by: Asias He as...@redhat.com Acked-by: Michael S. Tsirkin m...@redhat.com ---

Re: [PATCH v9 2/3] tcm_vhost: Add hotplug/hotunplug support

2013-04-24 Thread Michael S. Tsirkin
On Thu, Apr 25, 2013 at 11:10:05AM +0800, Asias He wrote: 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

Re: [PATCH v9 3/3] tcm_vhost: Add ioctl to get and set events missed flag

2013-04-24 Thread Michael S. Tsirkin
On Thu, Apr 25, 2013 at 11:10:06AM +0800, Asias He wrote: Signed-off-by: Asias He as...@redhat.com Please merge with patch 2 so we can use feature flag to know whether ioctl is supported. --- drivers/vhost/tcm_vhost.c | 17 + drivers/vhost/tcm_vhost.h | 3 +++ 2 files

Re: [PATCH v9 0/3] tcm_vhost hotplug

2013-04-24 Thread Michael S. Tsirkin
On Thu, Apr 25, 2013 at 11:10:03AM +0800, Asias He wrote: Asias He (3): tcm_vhost: Refactor the lock nesting rule tcm_vhost: Add hotplug/hotunplug support tcm_vhost: Add ioctl to get and set events missed flag For the series: Acked-by: Michael S. Tsirkin m...@redhat.com Reported a

Re: [PATCH v9 3/3] tcm_vhost: Add ioctl to get and set events missed flag

2013-04-24 Thread Michael S. Tsirkin
On Thu, Apr 25, 2013 at 11:10:06AM +0800, Asias He wrote: Signed-off-by: Asias He as...@redhat.com Acked-by: Michael S. Tsirkin m...@redhat.com --- drivers/vhost/tcm_vhost.c | 17 + drivers/vhost/tcm_vhost.h | 3 +++ 2 files changed, 20 insertions(+) diff --git

Re: [PATCH 0/7] KVM: irqfd generalization prepare patch set

2013-04-24 Thread Gleb Natapov
On Tue, Apr 16, 2013 at 07:26:08PM +0200, Alexander Graf wrote: The concept of an irqfd and interrupt routing are nothing particularly tied into the IOAPIC implementation. In fact, most of the code already is perfectly generic. This patch set decouples most bits of the existing irqchip and