Re: Memory sync algorithm during migration

2011-11-22 Thread Juan Quintela
Oliver Hookins wrote: > On Tue, Nov 15, 2011 at 11:47:58AM +0100, ext Juan Quintela wrote: >> Takuya Yoshikawa wrote: >> > Adding qemu-devel ML to CC. >> > >> > Your question should have been sent to qemu-devel ML because the logic >> > is implemented in QEMU, not KVM. >> > >> > (2011/11/11 1:35)

Re: [FYI] Need to do a full rebuild if you are on Linux x86 host

2011-11-22 Thread Gerd Hoffmann
On 11/22/11 01:25, Anthony Liguori wrote: > Due to this commit: > > commit 40d6444e91c6ab17e5e8ab01d4eece90cbc4afed > Author: Avi Kivity > Date: Tue Nov 15 20:12:17 2011 +0200 > > configure: build position independent executables on x86-Linux hosts > > PIE binaries cannot be linked with n

[PATCH] kvm-tpr-opt: Fix instruction_is_ok() for push tpr

2011-11-22 Thread Markus Armbruster
Missing break spotted by Coverity. Signed-off-by: Markus Armbruster --- kvm-tpr-opt.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/kvm-tpr-opt.c b/kvm-tpr-opt.c index 4b2bd47..14c4b36 100644 --- a/kvm-tpr-opt.c +++ b/kvm-tpr-opt.c @@ -152,6 +152,7 @@ static int instru

Re: [FYI] Need to do a full rebuild if you are on Linux x86 host

2011-11-22 Thread Paolo Bonzini
On 11/22/2011 10:41 AM, Gerd Hoffmann wrote: On 11/22/11 01:25, Anthony Liguori wrote: Due to this commit: commit 40d6444e91c6ab17e5e8ab01d4eece90cbc4afed Author: Avi Kivity Date: Tue Nov 15 20:12:17 2011 +0200 configure: build position independent executables on x86-Linux hosts PIE bi

Re: [FYI] Need to do a full rebuild if you are on Linux x86 host

2011-11-22 Thread Avi Kivity
On 11/22/2011 12:01 PM, Paolo Bonzini wrote: > On 11/22/2011 10:41 AM, Gerd Hoffmann wrote: >> On 11/22/11 01:25, Anthony Liguori wrote: >>> Due to this commit: >>> >>> commit 40d6444e91c6ab17e5e8ab01d4eece90cbc4afed >>> Author: Avi Kivity >>> Date: Tue Nov 15 20:12:17 2011 +0200 >>> >>> con

Re: [PATCH 1/7] KVM: x86 emulator: Use opcode::execute for IN/OUT

2011-11-22 Thread Avi Kivity
On 11/22/2011 08:16 AM, Takuya Yoshikawa wrote: > IN : E4, E5, EC, ED > OUT: E6, E7, EE, EF > > @@ -3867,11 +3888,12 @@ special_insn: > case 0x6c: /* insb */ > case 0x6d: /* insw/insd */ > ctxt->src.val = ctxt->regs[VCPU_REGS_RDX]; > -

Re: [PATCH 1/7] KVM: x86 emulator: Use opcode::execute for IN/OUT

2011-11-22 Thread Avi Kivity
On 11/22/2011 12:49 PM, Avi Kivity wrote: > On 11/22/2011 08:16 AM, Takuya Yoshikawa wrote: > > IN : E4, E5, EC, ED > > OUT: E6, E7, EE, EF > > > > @@ -3867,11 +3888,12 @@ special_insn: > > case 0x6c: /* insb */ > > case 0x6d: /* insw/insd */ > > ctxt->

Re: Memory sync algorithm during migration

2011-11-22 Thread Oliver Hookins
On Tue, Nov 22, 2011 at 10:31:58AM +0100, ext Juan Quintela wrote: > Oliver Hookins wrote: > > On Tue, Nov 15, 2011 at 11:47:58AM +0100, ext Juan Quintela wrote: > >> Takuya Yoshikawa wrote: > >> > Adding qemu-devel ML to CC. > >> > > >> > Your question should have been sent to qemu-devel ML beca

IOAPIC doesn't handle byte writes

2011-11-22 Thread Julian Stecklina
Hello, KVM emulates an IOAPIC that doesn't handle byte writes to its IOAPIC_REG_SELECT register, although for example the ICH10 spec[1] clearly states that this is an 8-bit register. See http://www.intel.com/content/dam/doc/datasheet/io-controller-hub-10-family-datasheet.pdf Table 13-4 on page 43

Re: IOAPIC doesn't handle byte writes

2011-11-22 Thread Avi Kivity
On 11/22/2011 03:13 PM, Julian Stecklina wrote: > Hello, > > KVM emulates an IOAPIC that doesn't handle byte writes to its > IOAPIC_REG_SELECT register, although for example the ICH10 spec[1] > clearly states that this is an 8-bit register. See > http://www.intel.com/content/dam/doc/datasheet/io-co

Re: KVM call agenda for Novemeber 22

2011-11-22 Thread Juan Quintela
Juan Quintela wrote: > Hi > > Please send in any agenda items you are interested in covering. As there is no topic for today, and Anthony just give us reading we would cancel today call. Happy hacking (and reading), Juan. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the b

Re: [Qemu-devel] KVM call agenda for Novemeber 22

2011-11-22 Thread Stefan Hajnoczi
On Tue, Nov 22, 2011 at 2:39 PM, Juan Quintela wrote: > Juan Quintela wrote: >> Hi >> >> Please send in any agenda items you are interested in covering. > > As there is no topic for today, and Anthony just give us reading we > would cancel today call. > > Happy hacking (and reading), Juan. I thi

Re: IOAPIC doesn't handle byte writes

2011-11-22 Thread Julian Stecklina
Hello, Avi Kivity wrote: > Care to post a patch instead? Sure. Never hacked KVM, though. Is there a particular reason why the void *val argument to ioapic_mmio_read/_write is only dereferenced when ioapic->lock is not held? Regards, Julian -- To unsubscribe from this list: send the line "unsubs

Re: [Qemu-devel] KVM call agenda for Novemeber 22

2011-11-22 Thread Stefan Hajnoczi
On Tue, Nov 22, 2011 at 3:00 PM, Stefan Hajnoczi wrote: > On Tue, Nov 22, 2011 at 2:39 PM, Juan Quintela wrote: >> Juan Quintela wrote: >>> Hi >>> >>> Please send in any agenda items you are interested in covering. >> >> As there is no topic for today, and Anthony just give us reading we >> woul

[PATCH] Allow aligned byte and word writes to IOAPIC registers.

2011-11-22 Thread Julian Stecklina
This fixes byte accesses to IOAPIC_REG_SELECT as mandated by at least the ICH10 and Intel Series 5 chipset specs. It also makes ioapic_mmio_write consistent with ioapic_mmio_read, which also allows byte and word accesses. Signed-off-by: Julian Stecklina --- virt/kvm/ioapic.c | 17 +

Re: [Qemu-devel] Memory sync algorithm during migration

2011-11-22 Thread Pierre Riteau
On 22 nov. 2011, at 14:04, Oliver Hookins wrote: > On Tue, Nov 22, 2011 at 10:31:58AM +0100, ext Juan Quintela wrote: >> Oliver Hookins wrote: >>> On Tue, Nov 15, 2011 at 11:47:58AM +0100, ext Juan Quintela wrote: Takuya Yoshikawa wrote: > Adding qemu-devel ML to CC. > > Your q

Re: [Qemu-devel] Memory sync algorithm during migration

2011-11-22 Thread Pierre Riteau
On 22 nov. 2011, at 14:04, Oliver Hookins wrote: > On Tue, Nov 22, 2011 at 10:31:58AM +0100, ext Juan Quintela wrote: >> Oliver Hookins wrote: >>> On Tue, Nov 15, 2011 at 11:47:58AM +0100, ext Juan Quintela wrote: Takuya Yoshikawa wrote: > Adding qemu-devel ML to CC. > > Your q

nested virtualization on Intel and needed cpu flags to pass

2011-11-22 Thread Gianluca Cecchi
Hello, I'm going to test nested virtualization on Intel with Fedora 16 host. I have used it successfully with Amd, where it is enabled by default in its kvm-amd module. Based on https://github.com/torvalds/linux/blob/master/Documentation/virtual/kvm/nested-vmx.txt and F16 having now [root at f16 ~]

Re: [RFC] kvm tools: Implement multiple VQ for virtio-net

2011-11-22 Thread Stephen Hemminger
I have been playing with userspace-rcu which has a number of neat lockless routines for queuing and hashing. But there aren't kernel versions and several of them may require cmpxchg to work. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vge

Re: [RFC PATCH] vfio: VFIO Driver core framework

2011-11-22 Thread Alex Williamson
On Mon, 2011-11-21 at 13:47 +1100, David Gibson wrote: > On Fri, Nov 18, 2011 at 01:32:56PM -0700, Alex Williamson wrote: > > On Thu, 2011-11-17 at 11:02 +1100, David Gibson wrote: > > > On Tue, Nov 15, 2011 at 11:01:28AM -0700, Alex Williamson wrote: > > > > On Tue, 2011-11-15 at 17:34 +1100, Davi

[PATCHv3 RFC] virtio-pci: flexible configuration layout

2011-11-22 Thread Michael S. Tsirkin
Here's an updated vesion. I'm alternating between updating the spec and the driver, spec update to follow. Compiled only. Posting here for early feedback, and to allow Sasha to proceed with his "kvm tool" work. Changes from v2: address comments by Rusty bugfixes by Sasha Changes

Re: [Qemu-devel] [RFC PATCH] vfio: VFIO Driver core framework

2011-11-22 Thread Alex Williamson
On Fri, Nov 18, 2011 at 2:09 PM, Scott Wood wrote: > On Fri, Nov 18, 2011 at 01:32:56PM -0700, Alex Williamson wrote: >> Hmm, that might be cleaner than eliminating the size with just using >> _IO().  So we might have something like: >> >> #define VFIO_IOMMU_MAP_DMA              _IOWR(';', 106, st

Re: [Qemu-devel] [RFC PATCH] vfio: VFIO Driver core framework

2011-11-22 Thread Scott Wood
On 11/22/2011 01:16 PM, Alex Williamson wrote: > On Fri, Nov 18, 2011 at 2:09 PM, Scott Wood wrote: >> On Fri, Nov 18, 2011 at 01:32:56PM -0700, Alex Williamson wrote: >>> Ugh, I suppose you're thinking of an ILP64 platform with ILP32 compat >>> mode. >> >> Does Linux support ILP64? There are "in

Re: Current kernel fails to compile with KVM on PowerPC

2011-11-22 Thread Jörg Sommer
Hi, Jörg Sommer hat am Mon 07. Nov, 20:48 (+0100) geschrieben: > I'm trying to build the kernel with the git commit-id > 31555213f03bca37d2c02e10946296052f4ecfcd, but it fails > > CHK include/linux/version.h > HOSTCC scripts/mod/modpost.o > CHK include/generated/utsrelease.h > UP

Re: Current kernel fails to compile with KVM on PowerPC

2011-11-22 Thread Alexander Graf
On 22.11.2011, at 21:04, Jörg Sommer wrote: > Hi, > > Jörg Sommer hat am Mon 07. Nov, 20:48 (+0100) geschrieben: >> I'm trying to build the kernel with the git commit-id >> 31555213f03bca37d2c02e10946296052f4ecfcd, but it fails >> >> CHK include/linux/version.h >> HOSTCC scripts/mod/modp

Re: [Qemu-devel] [RFC PATCH] vfio: VFIO Driver core framework

2011-11-22 Thread Alex Williamson
On Tue, 2011-11-22 at 14:00 -0600, Scott Wood wrote: > On 11/22/2011 01:16 PM, Alex Williamson wrote: > > On Fri, Nov 18, 2011 at 2:09 PM, Scott Wood wrote: > >> On Fri, Nov 18, 2011 at 01:32:56PM -0700, Alex Williamson wrote: > >>> Ugh, I suppose you're thinking of an ILP64 platform with ILP32 co

Re: KVM call agenda for Novemeber 22

2011-11-22 Thread 王永博
Does kvm has the api like vmsafe to help cooperator protect their product ? 2011/11/22 Juan Quintela : > > Hi > > Please send in any agenda items you are interested in covering. > > Later, Juan. > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to m

Re: [PATCH 5 of 5] virtio: expose added descriptors immediately

2011-11-22 Thread Rusty Russell
On Tue, 22 Nov 2011 08:29:08 +0200, "Michael S. Tsirkin" wrote: > On Tue, Nov 22, 2011 at 11:03:04AM +1030, Rusty Russell wrote: > > - /* If you haven't kicked in this long, you're probably doing something > > -* wrong. */ > > - WARN_ON(vq->num_added > vq->vring.num); > > + /* This is v

Re: [PATCHv3 RFC] virtio-pci: flexible configuration layout

2011-11-22 Thread Rusty Russell
On Tue, 22 Nov 2011 20:36:22 +0200, "Michael S. Tsirkin" wrote: > Here's an updated vesion. > I'm alternating between updating the spec and the driver, > spec update to follow. Don't touch the spec yet, we have a long way to go :( I want the ability for driver to set the ring size, and the devi

Re: [PATCHv4 0/3] acpi: DSDT/SSDT runtime patching

2011-11-22 Thread Kevin O'Connor
On Mon, Nov 21, 2011 at 10:22:22PM +0200, Michael S. Tsirkin wrote: > On Sun, Nov 20, 2011 at 04:08:59PM -0500, Kevin O'Connor wrote: > > On Sun, Nov 20, 2011 at 07:56:43PM +0200, Michael S. Tsirkin wrote: > > > Here's an updated revision of acpi runtime patching patchset. > > > Lightly tested. > >

Re: [Qemu-devel] KVM call agenda for Novemeber 22

2011-11-22 Thread Alex Jia
Hi Yongbo, I know VMsafe covers three main areas are Memory, Disk and Network for securing the virtual environment, as far as I know, for kvm security, we have similar security features or resource management and control, for instance: 1. Host network isolation, configuring network interface for

Re: [Qemu-devel] KVM call agenda for Novemeber 22

2011-11-22 Thread 王永博
Thank you ! 2011/11/23 Alex Jia : > Hi Yongbo, > I know VMsafe covers three main areas are Memory, Disk and Network > for securing the virtual environment, as far as I know, for kvm > security, we have similar security features or resource management > and control, for instance: > > 1. Host networ

[PATCH] KVM: x86 emulator: Use opcode::execute for INS/OUTS

2011-11-22 Thread Takuya Yoshikawa
From: Takuya Yoshikawa INSB : 6C INSW/INSD : 6D OUTSB : 6E OUTSW/OUTSD: 6F The I/O port address is read from the DX register when we decode the operand because we see the SrcDX/DstDX flag is set. Signed-off-by: Takuya Yoshikawa --- arch/x86/kvm/emulate.c | 14 ++ 1 f