Userspace MSR handling

2009-05-22 Thread Ed Swierk
I'm experimenting with Gerd's excellent work on integrating Xenner into Qemu (http://git.et.redhat.com/?p=qemu-kraxel.git). I'm using it to boot a FreeBSD guest that uses the Xen paravirtual network drivers. Decoupling the Xen PV guest support from the hypervisor really simplifies deployment. The

Re: Userspace MSR handling

2009-05-27 Thread Ed Swierk
On Mon, May 25, 2009 at 4:20 AM, Avi Kivity wrote: > Device drivers have no business writing to cpu model specific registers.  I > hate to bring that fugliness to kvm but I do want to support Xen guests. > > It should have been implemented as mmio.  Maybe implement an ioctl that > converts rdmsr/w

Re: Userspace MSR handling

2009-05-27 Thread Ed Swierk
On Wed, May 27, 2009 at 9:28 AM, Avi Kivity wrote: > Will it actually solve the problem? > > - can all hypercalls that can be issued with > pv-on-hvm-on-kvm-with-a-side-order-of-fries be satisfied from userspace? > - what about connecting the guest driver to xen netback one day?  we don't > want t

Re: Userspace MSR handling

2009-05-27 Thread Ed Swierk
On Wed, 2009-05-27 at 21:16 +0200, Gerd Hoffmann wrote: > Well, the "chunk of data" is on disk anyway: > $libdir/xenner/hvm{32,64}.bin > > So a possible plan to attack could be "ln -s $libdir/xenner > /lib/firmware", let kvm.ko grab it if needed using > request_firmware("xenner/hvm${bits}.bin"),

[PATCH][RFC] Xen PV-on-HVM guest support

2009-10-13 Thread Ed Swierk
e is interested. [1] http://www.mail-archive.com/kvm@vger.kernel.org/msg16065.html [2] http://git.et.redhat.com/?p=qemu-kraxel.git;a=log;h=refs/heads/xenner.v5 Signed-off-by: Ed Swierk --- diff -BurN a/include/asm-x86/kvm.h b/include/asm-x86/kvm.h --- a/include/asm-x86/kvm.h 2009-10-13 20:4

Re: [PATCH][RFC] Xen PV-on-HVM guest support

2009-10-14 Thread Ed Swierk
Thanks for the feedback; I'll post a new version shortly. On Tue, Oct 13, 2009 at 11:45 PM, Jan Kiszka wrote: > Interesting stuff. How usable is your work at this point? I've no > immediate demand, but the question if one could integrate Xen guests > with KVM already popped up more than once @wor

[PATCH] Xen PV-on-HVM guest support (v2)

2009-10-14 Thread Ed Swierk
and block devices. v2: fix ioctl struct padding; renumber CAP and ioctl constants; check kvm_write_guest() return value; change printks to KERN_DEBUG (I think they're worth keeping for debugging userspace) Signed-off-by: Ed Swierk --- Index: kvm-kmod/includ

[PATCH] Xen PV-on-HVM guest support (v3)

2009-10-15 Thread Ed Swierk
and block devices. v3: separate blob_{addr,size}_{32,64}; move xen_hvm_config to struct kvm_arch; remove unneeded ifdefs; return -EFAULT, -E2BIG, etc. from xen_hvm_config; use is_long_mode(); remove debug printks; document ioctl in api.txt Signed-off-by: Ed Swierk --- diff --git a/Documen

[PATCH][REPOST] Xen PV-on-HVM guest support (v3)

2009-10-15 Thread Ed Swierk
Signed-off-by: Ed Swierk --- diff --git a/Documentation/kvm/api.txt b/Documentation/kvm/api.txt index 5a4bc8c..5980113 100644 --- a/Documentation/kvm/api.txt +++ b/Documentation/kvm/api.txt @@ -593,6 +593,30 @@ struct kvm_irqchip { } chip; }; +4.27 KVM_XEN_HVM_CONFIG + +