Porting SPICE to Xen
Has anyone toyed with the idea of porting SPICE to Xen? I've been playing with it and it's quite impressive.
As far as I can tell it can run without KVM being loaded so it must run almost entirely in userspace, could it be as simple as applying the xen patches to the "spiced" qemu to make a "spiced" qemu-dm?
Any thoughts?
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 8 lines · David
Has anyone toyed with the idea of porting SPICE to Xen? I've been playing with it and it's quite impressive.
As far as I can tell it can run without KVM being loaded so it must run almost entirely in userspace, could it be as simple as applying the xen patches to the "spiced" qemu to make a "spiced" qemu-dm?
Any thoughts?
In theory it is entirely possible but at the moment we don't have a set of patches for qemu but a whole qemu branch so it would make this difficult.
Of course any effort to produce this set of patches from our current qemu-xen tree would be very welcome :)
If this happen, it will work with paravirtualized domUs too? Or maybe it is only for HVM domains?!
Cheers!
Thiago
2010/1/6 Stefano Stabellini <[email protected]>
Quoted 17 lines · David
Quoted 1 line
Has anyone toyed with the idea of porting SPICE to Xen? I've been playing
with it and it's quite impressive.
Quoted 2 lines
As far as I can tell it can run without KVM being loaded so it must run
almost entirely in userspace, could it be as
Quoted 1 line
simple as applying the xen patches to the "spiced" qemu to make a
"spiced" qemu-dm?
Quoted 4 lines
Any thoughts?
In theory it is entirely possible but at the moment we don't have a set of patches for qemu but a whole qemu branch so it would make this difficult.
Quoted 9 lines
Of course any effort to produce this set of patches from our current qemu-xen tree would be very welcome :)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 1 line · Thiago Camargo Martins Cordeiro
If this happen, it will work with paravirtualized domUs too? Or maybe it is only for HVM domains?!
SPICE is 2 differents parts, the part that expose the PCI device to the guest and "replace" the graphic card IIRC, and the actual remote desktop protocol.
at the moment the 2 are fairly intertwined, so it would only work with HVM domains [1], but depending on how the things get de-intertwined (which is something qemu people want), it might be possible to have it on PV. I wouldn't hold my breath on PV domain though.
(I'm no SPICE expert however, so it take it with a grain of salt.)
[1] providing all the pieces are available upstream in qemu etc.. which probably going to take a while too.
Signature · 1 line
Vincent
Quoted 6 lines · Vincent Hanquez
Quoted 2 lines · Thiago Camargo Martins Cordeiro
If this happen, it will work with paravirtualized domUs too? Or maybe it is only for HVM domains?!
SPICE is 2 differents parts, the part that expose the PCI device to the guest and "replace" the graphic card IIRC, and the actual remote desktop protocol.
That's not entirely accurate terminology. SPICE is the remote desktop protocol & client/server side libraries. When SPICE is integrated into QEMU, it takes advantage of a new graphics card called "QXL", and the corresponding guest OS drivers. IIUC, currently SPICE can't use the Cirrus card, and the QXL card doesn't work with VNC, but those are both just artifacts of the current integration of SPICE with QEMU, not problems of SPICE or QXL themselves, which from an architectural POV are both separate things.
Quoted 4 lines
at the moment the 2 are fairly intertwined, so it would only work with HVM domains [1], but depending on how the things get de-intertwined (which is something qemu people want), it might be possible to have it on PV. I wouldn't hold my breath on PV domain though.
It depends what you'd want from PV domain integration. I expect you could make SPICE "work" with the PVFB, but it probably wouldn't offer much of a performance benefit over VNC, because it'll be limited to dumb framebuffer mode. To take full advantage of SPICE requries a graphics card supporting the various advanced operations, which is what QXL supplies. Enhancing PVFB to support some of the advanced QXL features would be where the significant work arrives
Daniel
Signature · 4 lines
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
HVM would be a good start. It would be a good way for Xen to break into the VDI space easily, unless there's something I haven't come across?
As far as I understand, if the QXL driver isn't installed, it will fall back to standard VGA. The spice client will still be able to connect, but it just wont be accelerated.
The spice protocol doesn't just handle graphics, but sound and USB is in the pipeline.
The guest QXL driver is available for windows anyway, so that will be HVM only, I'm not sure about the status of the X guest driver.
2010/1/7 Daniel P. Berrange <[email protected]>
Quoted 30 lines · Vincent Hanquez
Quoted 6 lines · Thiago Camargo Martins Cordeiro
Quoted 2 lines
If this happen, it will work with paravirtualized domUs too? Or maybe it is only for HVM domains?!
SPICE is 2 differents parts, the part that expose the PCI device to the guest and "replace" the graphic card IIRC, and the actual remote desktop protocol.
That's not entirely accurate terminology. SPICE is the remote desktop protocol & client/server side libraries. When SPICE is integrated into QEMU, it takes advantage of a new graphics card called "QXL", and the corresponding guest OS drivers. IIUC, currently SPICE can't use the Cirrus card, and the QXL card doesn't work with VNC, but those are both just artifacts of the current integration of SPICE with QEMU, not problems of SPICE or QXL themselves, which from an architectural POV are both separate things.
Quoted 4 lines
at the moment the 2 are fairly intertwined, so it would only work with HVM domains [1], but depending on how the things get de-intertwined (which is something qemu people want), it might be possible to have it on PV. I wouldn't hold my breath on PV domain though.
It depends what you'd want from PV domain integration. I expect you could make SPICE "work" with the PVFB, but it probably wouldn't offer much of a performance benefit over VNC, because it'll be limited to dumb framebuffer mode. To take full advantage of SPICE requries a graphics card supporting the various advanced operations, which is what QXL supplies. Enhancing PVFB to support some of the advanced QXL features would be where the significant work arrives
Quoted 8 lines
Daniel
--|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/:| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org:| |: http://autobuild.org -o- http://search.cpan.org/~danberr/:| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 8 lines · David
HVM would be a good start. It would be a good way for Xen to break into the VDI space easily, unless there's something I haven't come across?
As far as I understand, if the QXL driver isn't installed, it will fall back to standard VGA. The spice client will still be able to connect, but it just wont be accelerated.
The spice protocol doesn't just handle graphics, but sound and USB is in the pipeline.
The guest QXL driver is available for windows anyway, so that will be HVM only, I'm not sure about the status of the X guest driver.
I just found out about that (maybe i'm just lagging), not sure the state either, but at least the source code is available:
http://cgit.freedesktop.org/xorg/driver/xf86-video-qxl
Signature · 1 line
Vincent
Quoted 12 lines · Vincent Hanquez
Quoted 11 lines · David
HVM would be a good start. It would be a good way for Xen to break into the VDI space easily, unless there's something I haven't come across?
As far as I understand, if the QXL driver isn't installed, it will fall back to standard VGA. The spice client will still be able to connect, but it just wont be accelerated.
The spice protocol doesn't just handle graphics, but sound and USB is in the pipeline.
Quoted 8 lines
Quoted 3 lines
The guest QXL driver is available for windows anyway, so that will be HVM only, I'm not sure about the status of the X guest driver.
I just found out about that (maybe i'm just lagging), not sure the state either, but at least the source code is available:
I think its fair to class that driver as functional, but not really taking advantage of all the QXL has to offer, so won't show the level of performance improvements QXL gives with the Window guest driver. The X driver should be in Fedora soon.
Regards,
Daniel
Signature · 4 lines
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
Yea QXL is going into mainstream Xorg I think, seen a release announcement a few days ago.
Also:
Simon Horman writes ("Re: [Xen-devel] Qemu version for upcoming Xen 4.0 release?"):
Quoted 5 lines
Quoted 2 lines
An idea from left-field, but is there any chance of merging qemu-xen into qemu?
We're planning to do this, hopefully into qemu 0.13 which is planned for the middle of this year
This could be interesting if SPICE makes its way into QEMU upstream also.
2010/1/11 Vincent Hanquez <[email protected]>
Quoted 16 lines · David
Quoted 8 lines
HVM would be a good start. It would be a good way for Xen to break into the VDI space easily, unless there's something I haven't come across?
As far as I understand, if the QXL driver isn't installed, it will fall back to standard VGA. The spice client will still be able to connect, but it just wont be accelerated.
Quoted 7 lines
The spice protocol doesn't just handle graphics, but sound and USB is in the pipeline.
The guest QXL driver is available for windows anyway, so that will be HVM only, I'm not sure about the status of the X guest driver.
Quoted 8 lines
I just found out about that (maybe i'm just lagging), not sure the state either, but at least the source code is available:
http://cgit.freedesktop.org/xorg/driver/xf86-video-qxl
--
Vincent
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel