Re: [Qemu-devel] [Patch] Support translating Guest physical address to Host virtual address.

2010-02-08 Thread Avi Kivity
On 02/08/2010 12:09 AM, Anthony Liguori wrote: On 02/07/2010 10:31 AM, Avi Kivity wrote: Only insofar as you don't have to deal with getting at the VM fd. You can avoid the problem by having the kvm ioctl interface take a pid or something. That's a racy interface. The mechanism itself is

Re: [Qemu-devel] [Patch] Support translating Guest physical address to Host virtual address.

2010-02-07 Thread Avi Kivity
On 02/03/2010 06:14 PM, Anthony Liguori wrote: aren't we putting the cart before the horse here? qemu has support for triggering MCEs on the monitor. Also the KVM code base has support for forwarding the MCEs automatically. KVM has all of the information you need (guest physical - host

Re: [Qemu-devel] [Patch] Support translating Guest physical address to Host virtual address.

2010-02-07 Thread Anthony Liguori
On 02/07/2010 08:03 AM, Avi Kivity wrote: On 02/03/2010 06:14 PM, Anthony Liguori wrote: aren't we putting the cart before the horse here? qemu has support for triggering MCEs on the monitor. Also the KVM code base has support for forwarding the MCEs automatically. KVM has all of the

Re: [Qemu-devel] [Patch] Support translating Guest physical address to Host virtual address.

2010-02-07 Thread Avi Kivity
On 02/07/2010 06:23 PM, Anthony Liguori wrote: On 02/07/2010 08:03 AM, Avi Kivity wrote: On 02/03/2010 06:14 PM, Anthony Liguori wrote: aren't we putting the cart before the horse here? qemu has support for triggering MCEs on the monitor. Also the KVM code base has support for forwarding the

Re: [Qemu-devel] [Patch] Support translating Guest physical address to Host virtual address.

2010-02-07 Thread Anthony Liguori
On 02/07/2010 10:31 AM, Avi Kivity wrote: Only insofar as you don't have to deal with getting at the VM fd. You can avoid the problem by having the kvm ioctl interface take a pid or something. That's a racy interface. The mechanism itself is racy. That said, pid's don't recycle very

RE: [Qemu-devel] [Patch] Support translating Guest physical address to Host virtual address.

2010-02-07 Thread Zheng, Jiajia
Anthony Liguori wrote: On 02/07/2010 10:31 AM, Avi Kivity wrote: Only insofar as you don't have to deal with getting at the VM fd. You can avoid the problem by having the kvm ioctl interface take a pid or something. That's a racy interface. The mechanism itself is racy. That said,

RE: [Qemu-devel] [Patch] Support translating Guest physical address to Host virtual address.

2010-02-04 Thread Zheng, Jiajia
Hi, Anthony Anthony Liguori wrote: On 02/03/2010 09:49 AM, Kleen, Andi wrote: Yeah, but if we put a feature in qemu, we need to be able to support it for anyone who wants to use it. It's useful for anyone who wants to use it for testing purposes. And it's useful to make sure the

Re: [Qemu-devel] [Patch] Support translating Guest physical address to Host virtual address.

2010-02-03 Thread Anthony Liguori
On 02/02/2010 10:04 PM, Zheng, Jiajia wrote: Hi, Any futher comments for this patch so that we can modify? Unfortunately, I see no way to modify this feature so that it would be acceptable to upstream. I think you're going to have to carry this patch for your own debugging. The

Re: [Qemu-devel] [Patch] Support translating Guest physical address to Host virtual address.

2010-02-03 Thread Anthony Liguori
On 02/03/2010 08:11 AM, Kleen, Andi wrote: If you want to integrate MCE testing into qemu using the host to inject MCEs, you'll need to figure out a way to do it that allows the whole thing to be done without potentially killing the wrong process or In the test it's very simple. The

Re: [Qemu-devel] [Patch] Support translating Guest physical address to Host virtual address.

2010-02-03 Thread Lucas Meneghel Rodrigues
On Wed, 2010-02-03 at 08:23 -0600, Anthony Liguori wrote: On 02/03/2010 08:11 AM, Kleen, Andi wrote: If you want to integrate MCE testing into qemu using the host to inject MCEs, you'll need to figure out a way to do it that allows the whole thing to be done without potentially

Re: [Qemu-devel] [Patch] Support translating Guest physical address to Host virtual address.

2010-02-03 Thread Anthony Liguori
On 02/03/2010 09:49 AM, Kleen, Andi wrote: Yeah, but if we put a feature in qemu, we need to be able to support it for anyone who wants to use it. It's useful for anyone who wants to use it for testing purposes. And it's useful to make sure the qemu/kernel/kvm machine check injection

RE: [Qemu-devel] [Patch] Support translating Guest physical address to Host virtual address.

2010-02-03 Thread Kleen, Andi
If you want to integrate MCE testing into qemu using the host to inject MCEs, you'll need to figure out a way to do it that allows the whole thing to be done without potentially killing the wrong process or In the test it's very simple. The process is kept running during the injection. With

RE: [Qemu-devel] [Patch] Support translating Guest physical address to Host virtual address.

2010-02-03 Thread Kleen, Andi
Yeah, but if we put a feature in qemu, we need to be able to support it for anyone who wants to use it. It's useful for anyone who wants to use it for testing purposes. And it's useful to make sure the qemu/kernel/kvm machine check injection code works. Adding something for a very particular

RE: [Qemu-devel] [Patch] Support translating Guest physical address to Host virtual address.

2010-02-02 Thread Zheng, Jiajia
Hi, Any futher comments for this patch so that we can modify? thanks, jiajia Max Asbock wrote: On Wed, 2010-01-27 at 15:39 -0600, Anthony Liguori wrote: On 01/26/2010 09:25 PM, Zheng, Jiajia wrote: Add command p2v to translate Guest physical address to Host virtual address. For what

Re: [Qemu-devel] [Patch] Support translating Guest physical address to Host virtual address.

2010-01-27 Thread Anthony Liguori
On 01/26/2010 09:25 PM, Zheng, Jiajia wrote: Add command p2v to translate Guest physical address to Host virtual address. For what purpose? Signed-off-by: Max Asbockmasb...@linux.vnet.ibm.com Jiajia Zhengjiajia.zh...@intel.com --- diff --git a/monitor.c b/monitor.c index

Re: [Qemu-devel] [Patch] Support translating Guest physical address to Host virtual address.

2010-01-27 Thread Max Asbock
On Wed, 2010-01-27 at 15:39 -0600, Anthony Liguori wrote: On 01/26/2010 09:25 PM, Zheng, Jiajia wrote: Add command p2v to translate Guest physical address to Host virtual address. For what purpose? Signed-off-by: Max Asbockmasb...@linux.vnet.ibm.com Jiajia

[Qemu-devel] [Patch] Support translating Guest physical address to Host virtual address.

2010-01-26 Thread Zheng, Jiajia
Add command p2v to translate Guest physical address to Host virtual address. Signed-off-by: Max Asbock masb...@linux.vnet.ibm.com Jiajia Zheng jiajia.zh...@intel.com --- diff --git a/monitor.c b/monitor.c index b33b01f..83d9ac7 100644 --- a/monitor.c +++ b/monitor.c @@ -668,6