Re: [PATCH 22/24] KVM: x86 emulator: restart string instruction without going back to a guest.

2010-03-09 Thread Takuya Yoshikawa
Gleb Natapov wrote: On Tue, Mar 09, 2010 at 04:50:29PM +0200, Avi Kivity wrote: On 03/09/2010 04:09 PM, Gleb Natapov wrote: Currently when string instruction is only partially complete we go back to a guest mode, guest tries to reexecute instruction and exits again and at this point emulation

Re: [Qemu-devel] [PATCH] Inter-VM shared memory PCI device

2010-03-09 Thread Cam Macdonell
On Tue, Mar 9, 2010 at 5:03 PM, Paul Brook p...@codesourcery.com wrote: In a cross environment that becomes extremely hairy.  For example the x86 architecture effectively has an implicit write barrier before every store, and an implicit read barrier before every load. Btw, x86 doesn't have

Shadow page table questions

2010-03-09 Thread Marek Olszewski
Hello, I was wondering if someone could point me to some documentation that explains the basic non-nested-paging shadow page table algorithm/strategy used by KVM. I understand that KVM caches shadow page tables across context switches and that there is a reverse mapping and page protection

RE: Some keys don't repeat in 64 bit Widows 7 kvm guest

2010-03-09 Thread Jimmy Crossley
-Original Message- From: Gleb Natapov [mailto:g...@redhat.com] Sent: Friday, January 22, 2010 00:58 To: Jimmy Crossley Cc: 'Jim Paris'; 'kvm@vger.kernel.org' Subject: Re: Some keys don't repeat in 64 bit Widows 7 kvm guest On Thu, Jan 21, 2010 at 05:35:08PM -0600, Jimmy Crossley

Re: [PATCH] KVM: PPC: Do not create debugfs if fail to create vcpu

2010-03-09 Thread Alexander Graf
On 09.03.2010, at 07:13, Wei Yongjun wrote: If fail to create the vcpu, we should not create the debugfs for it. Signed-off-by: Wei Yongjun yj...@cn.fujitsu.com Good catch. I guess a goto out kind of construct would be better, but for a single line of code this is enough. And whoever

Re: [PATCH 13/15] KVM: Add support for enabling capabilities per-vcpu

2010-03-09 Thread Avi Kivity
On 03/09/2010 03:01 PM, Alexander Graf wrote: On 09.03.2010, at 13:56, Avi Kivity wrote: On 03/08/2010 08:03 PM, Alexander Graf wrote: Some times we don't want all capabilities to be available to all our vcpus. One example for that is the OSI interface, implemented in the next

Re: [PATCH 14/15] KVM: PPC: Add OSI hypercall interface

2010-03-09 Thread Alexander Graf
On 09.03.2010, at 14:11, Avi Kivity wrote: On 03/09/2010 03:04 PM, Alexander Graf wrote: + /* KVM_EXIT_OSI */ + struct { + __u64 gprs[32]; + } osi; + +MOL uses a special hypercall interface it calls 'OSI'. To enable it, we catch +hypercalls

Re: [PATCH 14/15] KVM: PPC: Add OSI hypercall interface

2010-03-09 Thread Avi Kivity
On 03/09/2010 03:04 PM, Alexander Graf wrote: + /* KVM_EXIT_OSI */ + struct { + __u64 gprs[32]; + } osi; + +MOL uses a special hypercall interface it calls 'OSI'. To enable it, we catch +hypercalls and exit with this exit struct

Re: [PATCH 14/15] KVM: PPC: Add OSI hypercall interface

2010-03-09 Thread Alexander Graf
On 09.03.2010, at 14:19, Avi Kivity wrote: On 03/09/2010 03:12 PM, Alexander Graf wrote: On 09.03.2010, at 14:11, Avi Kivity wrote: On 03/09/2010 03:04 PM, Alexander Graf wrote: +/* KVM_EXIT_OSI */ +struct { +__u64

Re: [PATCH 14/15] KVM: PPC: Add OSI hypercall interface

2010-03-09 Thread Avi Kivity
On 03/09/2010 03:12 PM, Alexander Graf wrote: On 09.03.2010, at 14:11, Avi Kivity wrote: On 03/09/2010 03:04 PM, Alexander Graf wrote: + /* KVM_EXIT_OSI */ + struct { + __u64 gprs[32]; + } osi; + +MOL uses a

Re: [PATCH 02/15] KVM: PPC: Allow userspace to unset the IRQ line

2010-03-09 Thread Avi Kivity
On 03/08/2010 08:03 PM, Alexander Graf wrote: Userspace can tell us that it wants to trigger an interrupt. But so far it can't tell us that it wants to stop triggering one. So let's interpret the parameter to the ioctl that we have anyways to tell us if we want to raise or lower the interrupt

Re: [PATCH 13/15] KVM: Add support for enabling capabilities per-vcpu

2010-03-09 Thread Avi Kivity
On 03/08/2010 08:03 PM, Alexander Graf wrote: Some times we don't want all capabilities to be available to all our vcpus. One example for that is the OSI interface, implemented in the next patch. In order to have a generic mechanism in how to enable capabilities individually, this patch

Re: [PATCH 02/15] KVM: PPC: Allow userspace to unset the IRQ line

2010-03-09 Thread Avi Kivity
On 03/09/2010 02:54 PM, Alexander Graf wrote: On 09.03.2010, at 13:50, Avi Kivity wrote: On 03/08/2010 08:03 PM, Alexander Graf wrote: Userspace can tell us that it wants to trigger an interrupt. But so far it can't tell us that it wants to stop triggering one. So let's interpret

<    1   2