Skip to contentSkip to conversation

News - Microsoft Submits Drivers for Paravirtualization

DISCUSSION Nathan Eisenberg 8 participants 16 messages Jul 20, 2009 – Jul 24, 2009

lore
Share & tools
lore
#0 lore raw

I don't normally news-post, cross-post, or even post to devel at all, but I thought this was quite interesting.

Apparently, Microsoft submitted 20,000 lines of device driver code for inclusion in the staging kernel. Perhaps this is a step towards paravirtualized Windows guests in Xen? That would be quite compelling.

http://www.networkworld.com/news/2009/072009-microsoft-linux-source-code.html

Best Regards
Nathan Eisenberg
Sr. Systems Administrator
Atlas Networks, LLC

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

No, this seems to be a step in positioning Hyper-V to be the market leading hypervisor by making Linux run as a guest on Hyper-V. I don't see this as any sort of good news from a Xen standpoint. Perhaps I missed something that made you think otherwise?

Thomas

Quoted 29 lines · Nathan Eisenberg

I don’t normally news-post, cross-post, or even post to devel at all, but I thought this was quite interesting.

Apparently, Microsoft submitted 20,000 lines of device driver code for inclusion in the staging kernel.  Perhaps this is a step towards paravirtualized Windows guests in Xen?  That would be quite compelling.

http://www.networkworld.com/news/2009/072009-microsoft-linux-source-code.html

Best Regards

Nathan Eisenberg

Sr. Systems Administrator

Atlas Networks, LLC

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 4 lines · On Mon, 20 Jul 2009 13:50:30 -0700 Thomas DuBuisson…

No, this seems to be a step in positioning Hyper-V to be the market leading hypervisor by making Linux run as a guest on Hyper-V. I don't see this as any sort of good news from a Xen standpoint. Perhaps I missed something that made you think otherwise?

I assume the thinking is that from the Linux guest code you know what the server is supposed to provide to pretend to be a hyper-v hypervisor to windows. I'd bet there isn't sufficient info.

#3 lore raw
In reply to Nathan Eisenberg
Quoted 6 lines · Nathan Eisenberg

I don't normally news-post, cross-post, or even post to devel at all, but I thought this was quite interesting.

Apparently, Microsoft submitted 20,000 lines of device driver code for inclusion in the staging kernel.

Perhaps this is a step towards paravirtualized Windows guests in Xen? That would be quite compelling.

Xen already supports "Enlightened" Win2008/Windows7 (and Vista?) when you enable viridian=1 in the HVM domU cfg.

-- Pasi

#4 lore raw

Re: [Xen-devel] Re: Xen viridian support/features

Quoted 11 lines · Pasi Kärkkäinen
Quoted 6 lines · Nathan Eisenberg

I don't normally news-post, cross-post, or even post to devel at all, but I thought this was quite interesting.

Apparently, Microsoft submitted 20,000 lines of device driver code for inclusion in the staging kernel.

Perhaps this is a step towards paravirtualized Windows guests in Xen? That would be quite compelling.

Xen already supports "Enlightened" Win2008/Windows7 (and Vista?) when you enable viridian=1 in the HVM domU cfg.

Then again I'm not sure "how much" of viridian stuff Xen currently supports..

Maybe someone else has more knowledge about this?

-- Pasi

#5 lore raw

Re: [Xen-devel] Re: Xen viridian support/features

Quoted 9 lines · Pasi Kärkkäinen
Quoted 8 lines · Pasi Kärkkäinen
Quoted 6 lines · Nathan Eisenberg

I don't normally news-post, cross-post, or even post to devel at all, but I thought this was quite interesting.

Apparently, Microsoft submitted 20,000 lines of device driver code for inclusion in the staging kernel.

Perhaps this is a step towards paravirtualized Windows guests in Xen? That would be quite compelling.

Quoted 9 lines
Quoted 3 lines

Xen already supports "Enlightened" Win2008/Windows7 (and Vista?) when you enable viridian=1 in the HVM domU cfg.

Then again I'm not sure "how much" of viridian stuff Xen currently supports..

Maybe someone else has more knowledge about this?

CCing Keir.. maybe he has some thoughts about this.

-- Pasi

#6 lore raw

Re: Re: [Xen-users] Xen viridian support/features

In reply to Pasi Kärkkäinen
Quoted 2 lines · Pasi K?rkk?inen

Then again I'm not sure "how much" of viridian stuff Xen currently supports..

At the moment we provide MSR access to APIC registers, and the hypercall to yield the CPU when waiting for a spinlock. We looked at a few others (e.g. address-space-change hypercall) but found the benefits, if any, were negligible.

The most important part of the interface is that we can use it to tell Windows not to expect timer interrupt delivery to be as even across all CPUs as it would be on bare metal. This gets rid of annoying STOP 0x101 bluescreens in multi-vcpu Windows from Vista on.

Cheers,

Tim.

Signature · 3 lines
Tim Deegan <[email protected]>
Principal Software Engineer, Citrix Systems (R&D) Ltd.
[Company #02300071, SL9 0DZ, UK.]
#7 lore raw

Re: Re: [Xen-users] Xen viridian support/features

Quoted 9 lines · Tim Deegan
Quoted 2 lines · Pasi K?rkk?inen

Then again I'm not sure "how much" of viridian stuff Xen currently supports..

At the moment we provide MSR access to APIC registers, and the hypercall to yield the CPU when waiting for a spinlock. We looked at a few others (e.g. address-space-change hypercall) but found the benefits, if any, were negligible.

Quoted 5 lines

The most important part of the interface is that we can use it to tell Windows not to expect timer interrupt delivery to be as even across all CPUs as it would be on bare metal. This gets rid of annoying STOP 0x101 bluescreens in multi-vcpu Windows from Vista on.

Thanks for the reply!

Any plans to write support for paravirtual viridian disk/network backends? (I assume they have stuff like that implemented in hyper-v).

-- Pasi

#8 lore raw

Re: Re: [Xen-users] Xen viridian support/features

Quoted 2 lines · Pasi K?rkk?inen

Any plans to write support for paravirtual viridian disk/network backends? (I assume they have stuff like that implemented in hyper-v).

I don't think anyone's doing that, but there is a choice of Xen PV drivers for Windows that will do the job. Are the PV driver interfaces even public? I don't remember seeing them in the hyper-v spec, though I haven't read the latest version.

Cheers,

Tim.

Signature · 3 lines
Tim Deegan <[email protected]>
Principal Software Engineer, Citrix Systems (R&D) Ltd.
[Company #02300071, SL9 0DZ, UK.]
#9 lore raw

Re: Re: [Xen-users] Xen viridian support/features

Quoted 11 lines · Tim Deegan
Quoted 3 lines · Pasi K?rkk?inen

Any plans to write support for paravirtual viridian disk/network backends? (I assume they have stuff like that implemented in hyper-v).

I don't think anyone's doing that, but there is a choice of Xen PV drivers for Windows that will do the job. Are the PV driver interfaces even public? I don't remember seeing them in the hyper-v spec, though I haven't read the latest version.

They were implicitly published, at least to some extent, in the form of the big HyperV PV driver dump for Linux. But I don't think those drivers are very featureful yet, though they claim to be planning to release more updates.

J

#10 lore raw

Re: [Xen-devel] Re: Xen viridian support/features

Uhm, just to get clear in this topic,
the great work of James is not that useful as it supposed in this thread. It leaks reliable support for exactly those Windows Versions with best Hyper-V integrations.
So there is the choice to exploit Hyper-V guest integration services or absolutely ugly hacking around in a win2008 x64 guest policies with a real great chance to get the guest perfectly and unrecoverable meshed up. So it would be great at least to have things like shutdown notification out of the box, as it will be with an viridian interface implementation.

Again if xen provides a feature using viridian API win2008 x64 guests would use it without ANY modification.

Florian

Am 23.07.2009 23:28, schrieb Jeremy Fitzhardinge:

Quoted 17 lines · Tim Deegan
Quoted 10 lines
Quoted 3 lines · Pasi K?rkk?inen

Any plans to write support for paravirtual viridian disk/network backends? (I assume they have stuff like that implemented in hyper-v).

I don't think anyone's doing that, but there is a choice of Xen PV drivers for Windows that will do the job. Are the PV driver interfaces even public? I don't remember seeing them in the hyper-v spec, though I haven't read the latest version.

They were implicitly published, at least to some extent, in the form of the big HyperV PV driver dump for Linux. But I don't think those drivers are very featureful yet, though they claim to be planning to release more updates.

Quoted 7 lines

J

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

#11 lore raw

Re: Re: [Xen-users] Xen viridian support/features

Quoted 9 lines · Florian Manschwetus

Uhm, just to get clear in this topic,
the great work of James is not that useful as it supposed in this thread. It leaks reliable support for exactly those Windows Versions with best Hyper-V integrations.
So there is the choice to exploit Hyper-V guest integration services or absolutely ugly hacking around in a win2008 x64 guest policies with a real great chance to get the guest perfectly and unrecoverable meshed up. So it would be great at least to have things like shutdown notification out of the box, as it will be with an viridian interface implementation

When you say "shutdown notification" I assume you mean dom0 telling a hvm guest to shutdown , in which case "xm trigger <domid> power" seems to do the job with no additional drivers or services required, and should work on most operating systems.

Perhaps I misunderstood..

Andy
.

Quoted 42 lines

Again if xen provides a feature using viridian API win2008 x64 guests would use it without ANY modification.

Florian

Am 23.07.2009 23:28, schrieb Jeremy Fitzhardinge:

Quoted 20 lines · Tim Deegan
Quoted 12 lines
Quoted 4 lines · Pasi K?rkk?inen

Any plans to write support for paravirtual viridian disk/network backends?
(I assume they have stuff like that implemented in hyper-v).

I don't think anyone's doing that, but there is a choice of Xen PV drivers for Windows that will do the job.  Are the PV driver interfaces even public?  I don't remember seeing them in the hyper-v spec, though I haven't read the latest version.

They were implicitly published, at least to some extent, in the form of the big HyperV PV driver dump for Linux.  But I don't think those drivers are very featureful yet, though they claim to be planning to release more updates.

Quoted 7 lines

    J

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

#12 lore raw

Re: Re: [Xen-users] Xen viridian support/features

Am 24.07.2009 21:31, schrieb Andrew Lyon:

Quoted 12 lines
Quoted 9 lines · Florian Manschwetus

Uhm, just to get clear in this topic,
the great work of James is not that useful as it supposed in this thread. It leaks reliable support for exactly those Windows Versions with best Hyper-V integrations.
So there is the choice to exploit Hyper-V guest integration services or absolutely ugly hacking around in a win2008 x64 guest policies with a real great chance to get the guest perfectly and unrecoverable meshed up. So it would be great at least to have things like shutdown notification out of the box, as it will be with an viridian interface implementation

Quoted 6 lines

When you say "shutdown notification" I assume you mean dom0 telling a hvm guest to shutdown , in which case "xm trigger<domid> power" seems to do the job with no additional drivers or services required, and should work on most operating systems.

Perhaps I misunderstood..

Hm no it is fine but when I shutdown dom0 the windows system just get killed (xm shutdown is issued afaik). Furthermore this won't include a back channel (does it work?) and not every system surely shutsdown when powerbutton is pressed, maybe there must be a bit configured...

Florian

Quoted 41 lines

Andy
.

Quoted 37 lines

Again if xen provides a feature using viridian API win2008 x64 guests would use it without ANY modification.

Florian

Am 23.07.2009 23:28, schrieb Jeremy Fitzhardinge:

Quoted 17 lines · Tim Deegan
Quoted 11 lines
Quoted 4 lines · Pasi K?rkk?inen

Any plans to write support for paravirtual viridian disk/network backends?
(I assume they have stuff like that implemented in hyper-v).

I don't think anyone's doing that, but there is a choice of Xen PV drivers for Windows that will do the job. Are the PV driver interfaces even public? I don't remember seeing them in the hyper-v spec, though I haven't read the latest version.

They were implicitly published, at least to some extent, in the form of the big HyperV PV driver dump for Linux. But I don't think those drivers are very featureful yet, though they claim to be planning to release more updates.

Quoted 7 lines

J

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#13 lore raw

Re: Re: [Xen-users] Xen viridian support/features

Quoted 24 lines · Florian Manschwetus

Am 24.07.2009 21:31, schrieb Andrew Lyon:

Quoted 23 lines
Quoted 14 lines · Florian Manschwetus

Uhm, just to get clear in this topic,
the great work of James is not that useful as it supposed in this thread. It
leaks reliable support for exactly those Windows Versions with best Hyper-V
integrations.
So there is the choice to exploit Hyper-V guest integration services or absolutely ugly hacking around in a win2008 x64 guest policies with a real
great chance to get the guest perfectly and unrecoverable meshed up. So it would be great at least to have things like shutdown notification out
of the box, as it will be with an viridian interface implementation

When you say "shutdown notification" I assume you mean dom0 telling a hvm guest to shutdown , in which case "xm trigger<domid>  power" seems to do the job with no additional drivers or services required, and should work on most operating systems.

Quoted 4 lines
Quoted 1 line

Perhaps I misunderstood..

Hm no it is fine but when I shutdown dom0 the windows system just get killed (xm shutdown is issued afaik). Furthermore this won't include a back channel

Yes thats right when the system shuts down xm shutdown is called, I don't know what happens if a guest fails to shutdown, myself I'd probably want it to be xm destroyed after a timeout as thats probably what I'd end up doing anyway, I could easily modify the script for you so that after trying xm shutdown it sends xm trigger <domid> power to any remaining domains and if any still fail to shutdown I could make it destroy them.

Its something I looked into and could do in few minutes, I just didn't bother because all of our servers have remote kvm and 99% of reboots are supervised, but let me know if you'd like me to make a patch for you.

Andy

Quoted 53 lines

(does it work?) and not every system surely shutsdown when powerbutton is pressed, maybe there must be a bit configured...

Florian

Quoted 46 lines

Andy
.

Quoted 42 lines

Again if xen provides a feature using viridian API win2008 x64 guests would
use it without ANY modification.

Florian

Am 23.07.2009 23:28, schrieb Jeremy Fitzhardinge:

Quoted 20 lines · Tim Deegan
Quoted 7 lines
Quoted 4 lines · Pasi K?rkk?inen

Any plans to write support for paravirtual viridian disk/network backends?
(I assume they have stuff like that implemented in hyper-v).

Quoted 6 lines

I don't think anyone's doing that, but there is a choice of Xen PV drivers for Windows that will do the job.  Are the PV driver interfaces even public?  I don't remember seeing them in the hyper-v spec, though I
haven't read the latest version.

They were implicitly published, at least to some extent, in the form of the big HyperV PV driver dump for Linux.  But I don't think those drivers are very featureful yet, though they claim to be planning to release more updates.

Quoted 7 lines

    J

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

#14 lore raw

Re: Re: [Xen-users] Xen viridian support/features

Am 24.07.2009 23:29, schrieb Andrew Lyon:

Quoted 35 lines
Quoted 16 lines · Florian Manschwetus

Am 24.07.2009 21:31, schrieb Andrew Lyon:

Quoted 15 lines
Quoted 13 lines · Florian Manschwetus

Uhm, just to get clear in this topic,
the great work of James is not that useful as it supposed in this thread. It
leaks reliable support for exactly those Windows Versions with best Hyper-V
integrations.
So there is the choice to exploit Hyper-V guest integration services or absolutely ugly hacking around in a win2008 x64 guest policies with a real
great chance to get the guest perfectly and unrecoverable meshed up. So it would be great at least to have things like shutdown notification out
of the box, as it will be with an viridian interface implementation

Quoted 8 lines
Quoted 6 lines

When you say "shutdown notification" I assume you mean dom0 telling a
hvm guest to shutdown , in which case "xm trigger<domid> power" seems
to do the job with no additional drivers or services required, and should work on most operating systems.

Perhaps I misunderstood..

Hm no it is fine but when I shutdown dom0 the windows system just get killed (xm shutdown is issued afaik). Furthermore this won't include a back channel

Yes thats right when the system shuts down xm shutdown is called, I don't know what happens if a guest fails to shutdown, myself I'd probably want it to be xm destroyed after a timeout as thats probably what I'd end up doing anyway, I could easily modify the script for you so that after trying xm shutdown it sends xm trigger<domid> power to any remaining domains and if any still fail to shutdown I could make it destroy them.

Quoted 6 lines

Its something I looked into and could do in few minutes, I just didn't bother because all of our servers have remote kvm and 99% of reboots are supervised, but let me know if you'd like me to make a patch for you.

Andy

Would be great until a more sophisticated way is realized.

Florian

Quoted 41 lines
Quoted 41 lines

(does it work?) and not every system surely shutsdown when powerbutton is pressed, maybe there must be a bit configured...

Florian

Quoted 35 lines

Andy
.

Quoted 33 lines

Again if xen provides a feature using viridian API win2008 x64 guests would
use it without ANY modification.

Florian

Am 23.07.2009 23:28, schrieb Jeremy Fitzhardinge:

Quoted 25 lines · Tim Deegan
Quoted 6 lines
Quoted 4 lines · Pasi K?rkk?inen

Any plans to write support for paravirtual viridian disk/network backends?
(I assume they have stuff like that implemented in hyper-v).

Quoted 6 lines

I don't think anyone's doing that, but there is a choice of Xen PV drivers for Windows that will do the job. Are the PV driver interfaces even public? I don't remember seeing them in the hyper-v spec, though I
haven't read the latest version.

They were implicitly published, at least to some extent, in the form of the big HyperV PV driver dump for Linux. But I don't think those drivers are very featureful yet, though they claim to be planning to release more updates.

J

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

Quoted 8 lines
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#15 lore raw

Re: Re: [Xen-users] Xen viridian support/features

In reply to Pasi Kärkkäinen

Am 23.07.2009 16:19, schrieb Pasi Kärkkäinen:

Quoted 20 lines · Tim Deegan
Quoted 8 lines
Quoted 2 lines · Pasi K?rkk?inen

Then again I'm not sure "how much" of viridian stuff Xen currently supports..

At the moment we provide MSR access to APIC registers, and the hypercall to yield the CPU when waiting for a spinlock. We looked at a few others (e.g. address-space-change hypercall) but found the benefits, if any, were negligible.

Quoted 5 lines

The most important part of the interface is that we can use it to tell Windows not to expect timer interrupt delivery to be as even across all CPUs as it would be on bare metal. This gets rid of annoying STOP 0x101 bluescreens in multi-vcpu Windows from Vista on.

Thanks for the reply!

Any plans to write support for paravirtual viridian disk/network backends? (I assume they have stuff like that implemented in hyper-v).

Quoted 7 lines

-- Pasi

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

Take a shorter target, reboot notification using hyper-v guest integration stuff would be a great win.

Florian

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel