|
From: | Avi Kivity |
Subject: | Re: [Qemu-devel] [Patch] Support translating Guest physical address to Host virtual address. |
Date: | Sun, 07 Feb 2010 18:31:03 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Thunderbird/3.0.1 |
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 MCEs automatically.KVM has all of the information you need (guest physical -> host physical mapping). It can also pin the mapping making it much safer to interface at that level. You should probably add an ioctl interface to KVM to get a host physical from a given guest physical and then use that to do the MCE injection. You would need to write a little helper tool and you would need a way to get an fd for an existing guest.It would be simpler to trigger the whole thing from within qemu.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 problem I have with driving this through qemu is that it's purely a test mechanism and it's not even one that we can verify within qemu. It's a command that isn't really useful in anything but a very specific context.I don't think it's the right thing to do to add dozens of monitor commands to enable test harnesses that are not related to actual functionality within qemu.
Well, we need to provide a reasonable alternative.One might be to use -mempath (which is hacky by itself, but so far we have no alternative) and use an external tool on the memory object to poison it. An advantage is that you can use it independently of kvm.
-- error compiling committee.c: too many arguments to function
[Prev in Thread] | Current Thread | [Next in Thread] |