Skip to contentSkip to conversation

PV-on-HVM Support

DISCUSSION Eric Benton 4 participants 8 messages Oct 29, 2006

lore
Share & tools
lore
#1 lore raw
Quoted 3 lines · Eric Benton

I don't see it in the sources.
Is there a way that I could today, run a HVM domain with a PV network card?

They are in the unmodified_drivers subdirectory of xen-unstable.hg.

Ian.

#2 lore raw

Thanks Ian...
I'm feeling like I'm supposed to solve a riddle :-)

1. What's all those patches? http://www.cl.cam.ac.uk/~sos22/pv-on-hvm/
2. How do I incorporate these unmodified drivers in my build in order to create a working PV-on-HVM guest?

Thanks in advance,
Eric.

Quoted 12 lines · Ian Campbell
Quoted 3 lines · Eric Benton

I don't see it in the sources.
Is there a way that I could today, run a HVM domain with a PV network card?

They are in the unmodified_drivers subdirectory of xen-unstable.hg.

Ian.

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

#3 lore raw
Quoted 4 lines · Eric Benton

Thanks Ian...
I'm feeling like I'm supposed to solve a riddle :-)

1. What's all those patches? http://www.cl.cam.ac.uk/~sos22/pv-on-hvm/

I'm not sure. I think they are probably Stevens patches from before they were merged into xen-unstable.

Quoted 2 lines

2. How do I incorporate these unmodified drivers in my build in order to create a working PV-on-HVM guest?

There is a README in the unmodified_drivers subdirectory which explains what you need to do.

It is basically the same as for building any out of tree driver:

	cd unmodified_drivers/linux-2.6
	sh mkbuildtree i386
	make -C /path/to/kernel/source M=$(pwd) modules modules_install

The kernel source is usually pointed to by /lib/modules/$(uname -r)/build if you have the relevant kernel-headers package installed or if you built the kernel yourself.

Ian.

#4 lore raw

1. Ok, thanks.
2. I didn't understand how the PCI probing of a HVM is being done, if no new files were introduced to the hvm source tree (vmx). would you be kind to explain?
The README states that we get 4 modules by doing so, that are needed to be loaded in a certain way (platform-pci first), so I guess that should be done in dom0. It's kind of hard to know what to do If you don't know the architecture.

Thanks,
Eric.

Quoted 21 lines · Ian Campbell
Quoted 4 lines · Eric Benton

Thanks Ian...
I'm feeling like I'm supposed to solve a riddle :-)

1. What's all those patches? http://www.cl.cam.ac.uk/~sos22/pv-on-hvm/

I'm not sure. I think they are probably Stevens patches from before they were merged into xen-unstable.

Quoted 2 lines

2. How do I incorporate these unmodified drivers in my build in order to create a working PV-on-HVM guest?

There is a README in the unmodified_drivers subdirectory which explains what you need to do.

It is basically the same as for building any out of tree driver:
cd unmodified_drivers/linux-2.6
sh mkbuildtree i386
make -C /path/to/kernel/source M=$(pwd) modules modules_install

Quoted 7 lines

The kernel source is usually pointed to by /lib/modules/$(uname -r)/build if you have the relevant kernel-headers package installed or if you built the kernel yourself.

Ian.

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

#5 lore raw
Quoted 4 lines · Eric Benton

1. Ok, thanks.
2. I didn't understand how the PCI probing of a HVM is being done, if no new files were introduced to the hvm source tree (vmx). would you be kind to explain?

There are no new files in the hvm source tree, that side of things is already included in xen 3.0.3.

Quoted 4 lines

The README states that we get 4 modules by doing so, that are needed to be loaded in a certain way (platform-pci first), so I guess that should be done in dom0. It's kind of hard to know what to do If you don't know the architecture.

The modules are the drivers to be loaded in your domU, there is nothing extra required in dom0.

Ian.

#6 lore raw

But all these supports are for PV-on-HVM for Linux, does Xen have any plan for PV-on-HVM for Windows?

----- Original Message ----- From: "Ian Campbell" <[email protected]>
To: "Eric Benton" <[email protected]>
Cc: <[email protected]>
Sent: Sunday, October 29, 2006 8:08 AM
Subject: Re: [Xen-devel] PV-on-HVM Support

Quoted 25 lines · Eric Benton
Quoted 4 lines

1. Ok, thanks.
2. I didn't understand how the PCI probing of a HVM is being done, if no new files were introduced to the hvm source tree (vmx). would you be kind to explain?

There are no new files in the hvm source tree, that side of things is already included in xen 3.0.3.

Quoted 4 lines

The README states that we get 4 modules by doing so, that are needed to be loaded in a certain way (platform-pci first), so I guess that should be done in dom0. It's kind of hard to know what to do If you don't know the architecture.

The modules are the drivers to be loaded in your domU, there is nothing extra required in dom0.

Ian.

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

#7 lore raw
In reply to Eric Benton
Quoted 4 lines

Thanks Ian...
I'm feeling like I'm supposed to solve a riddle :-)

1. What's all those patches? http://www.cl.cam.ac.uk/~sos22/pv-on-hvm/

Those are old versions of this stuff from before it got merged into mainline Xen. I've added a README warning people not to use them anymore; sorry for any confusion.

Quoted 2 lines

2. How do I incorporate these unmodified drivers in my build in order to create a working PV-on-HVM guest?

You build a normal HVM guest, and then load these drivers in as modules. There's a (very brief) readme in unmodified-drivers/linux-2.6 describing how to build and load them.

Steven.

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