Re: [PATCH v3 5/5] KVM: x86: improve reexecute_instruction

2013-01-03 Thread Xiao Guangrong
Hi Gleb, Thanks for your review and sorry for the delay reply since i was on my vacation. On 12/23/2012 11:02 PM, Gleb Natapov wrote: > On Sat, Dec 15, 2012 at 03:01:12PM +0800, Xiao Guangrong wrote: >> >> +is_self_change_mapping = FNAME(is_self_change_mapping)(vcpu, addr, >> +

Re: KVM: x86: use dynamic percpu allocations for shared msrs area

2013-01-03 Thread Mike Galbraith
On Thu, 2013-01-03 at 11:41 -0200, Marcelo Tosatti wrote: > Andy, Mike, can you confirm whether this fixes the percpu allocation > failures when loading kvm.ko? TIA monteverdi:~/:[1]# dmesg|grep PERCPU [0.00] PERCPU: Embedded 27 pages/cpu @88047f80 s80704 r8192 d21696 u262144 mon

Re: [Qemu-devel] [PATCH 10/12] virtio-net: multiqueue support

2013-01-03 Thread Jason Wang
On 12/29/2012 01:52 AM, Blue Swirl wrote: > On Fri, Dec 28, 2012 at 10:32 AM, Jason Wang wrote: >> This patch implements both userspace and vhost support for multiple queue >> virtio-net (VIRTIO_NET_F_MQ). This is done by introducing an array of >> VirtIONetQueue to VirtIONet. >> >> Signed-off-by:

Re: [PATCH 0/7] Streamline arithmetic instruction emulation

2013-01-03 Thread Marcelo Tosatti
On Thu, Jan 03, 2013 at 09:39:14PM +0200, Avi Kivity wrote: > > > Avi Kivity (7): > > > KVM: x86 emulator: framework for streamlining arithmetic opcodes > > > KVM: x86 emulator: Support for declaring single operand fastops > > > KVM: x86 emulator: introduce NoWrite flag > > > KVM: x86 emula

KVM: x86: use dynamic percpu allocations for shared msrs area

2013-01-03 Thread Marcelo Tosatti
Andy, Mike, can you confirm whether this fixes the percpu allocation failures when loading kvm.ko? TIA Use dynamic percpu allocations for the shared msrs structure, to avoid using the limited reserved percpu space. Signed-off-by: Marcelo Tosatti diff --git a/arch/x86/kvm/x86.c b/arch/x8

Re: KVM: VMX: fix incorrect cached cpl value with real/v8086 modes

2013-01-03 Thread Marcelo Tosatti
On Thu, Jan 03, 2013 at 10:11:53AM +0200, Gleb Natapov wrote: > > FreeBSD 9.1 with -smp 2. > I cannot reproduce. I do see boot failure on the next branch with 9.[01] > 64 bit -smp 2 here, but it is caused but segment registers been all > incorrect on a secondary vcpu and this patch does not help. A

KVM: VMX: fix incorrect cached cpl value with real/v8086 modes (v2)

2013-01-03 Thread Marcelo Tosatti
CPL is always 0 when in real mode, and always 3 when virtual 8086 mode. Using values other than those can cause failures on operations that check CPL. Signed-off-by: Marcelo Tosatti diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 55dfc37..849f5f2 100644 --- a/arch/x86/kvm/vmx.c +++

Re: [PATCHv2 0/6] more VMX real mode emulation fixes

2013-01-03 Thread Marcelo Tosatti
On Thu, Dec 20, 2012 at 04:57:41PM +0200, Gleb Natapov wrote: > This series goes on top of my previous one: "Fix > emulate_invalid_guest_state=0 part 2". It does not only fixes bugs, > but also does a nice cleanup of VMX real mode emulation. All real mode > segment register mangling is now containe

Re: [PATCH v5 0/7] s390: Host support for channel I/O.

2013-01-03 Thread Alexander Graf
On 20.12.2012, at 15:32, Cornelia Huck wrote: > Hi, > > here's the next iteration of the host patches to support channel > I/O against kvm/next. > > Changes from v4 are on the style side; mainly using defines instead > of magic numbers and using helper functions for decoding instructions. > >

Re: [PATCH qom-cpu 4/4] target-ppc: Error out for -cpu host on unknown PVR

2013-01-03 Thread Alexander Graf
On 18.12.2012, at 08:53, Andreas Färber wrote: > Previously we silently exited, with subclasses we got an opcode warning. > Instead explicitly tell the user what's wrong. > > An indication for this is -cpu ? showing "host" with an all-zero PVR. > > Signed-off-by: Andreas Färber > --- > target-

Re: [PATCH v2 1/5] virtio: add functions for piecewise addition of buffers

2013-01-03 Thread Paolo Bonzini
Il 02/01/2013 06:03, Rusty Russell ha scritto: > Paolo Bonzini writes: >> The virtqueue_add_buf function has two limitations: >> >> 1) it requires the caller to provide all the buffers in a single call; >> >> 2) it does not support chained scatterlists: the buffers must be >> provided as an array

Re: [PATCH v2 1/5] virtio: add functions for piecewise addition of buffers

2013-01-03 Thread Wanlong Gao
On 01/02/2013 01:03 PM, Rusty Russell wrote: > Paolo Bonzini writes: >> The virtqueue_add_buf function has two limitations: >> >> 1) it requires the caller to provide all the buffers in a single call; >> >> 2) it does not support chained scatterlists: the buffers must be >> provided as an array of

Re: KVM: VMX: fix incorrect cached cpl value with real/v8086 modes

2013-01-03 Thread Gleb Natapov
On Tue, Jan 01, 2013 at 09:36:38PM -0200, Marcelo Tosatti wrote: > On Wed, Dec 26, 2012 at 03:33:16PM +0200, Gleb Natapov wrote: > > On Wed, Dec 26, 2012 at 11:25:24AM -0200, Marcelo Tosatti wrote: > > > On Wed, Dec 26, 2012 at 07:25:49AM +0200, Gleb Natapov wrote: > > > > On Tue, Dec 25, 2012 at 0