Skip to contentSkip to conversation

VT-d HowTo Update

DISCUSSION Simon Horman 6 participants 11 messages Apr 21, 2009 – Apr 23, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

in preparation for 3.4.0 I have made a number of updates to the VT-d Howto. I have tried to retain the original information while reorganising things a bit. I have also added information on recent work I have done in this area.

Apologies in advance for any errors, accidental deletions, etc...

http://wiki.xensource.com/xenwiki/VTdHowTo

Signature · 3 lines
Simon Horman
  VA Linux Systems Japan K.K. Satellite Lab in Sydney, Australia
  H: www.vergenet.net/~horms/            W: www.valinux.co.jp/en
#1 lore raw
Quoted 10 lines · Simon Horman

Hi,

in preparation for 3.4.0 I have made a number of updates to the VT-d Howto. I have tried to retain the original information while reorganising things a bit. I have also added information on recent work I have done in this area.

Apologies in advance for any errors, accidental deletions, etc...

http://wiki.xensource.com/xenwiki/VTdHowTo

Simon,

It looks fine for me. It's good to update VT-d Howto according to upstream status. Thanks.

Regards,
Weidong

#2 lore raw
In reply to Simon Horman
Quoted 10 lines · Simon Horman

Hi,

in preparation for 3.4.0 I have made a number of updates to the VT-d Howto. I have tried to retain the original information while reorganising things a bit. I have also added information on recent work I have done in this area.

Apologies in advance for any errors, accidental deletions, etc...

http://wiki.xensource.com/xenwiki/VTdHowTo

Hi Simon,
There is a bug: we can't pci-detach a statically-assigned (I mean: use the pci string in hvm config file) devices for hvm guest.
Accordong my limited experience, after a device is assigned to hvm guest, ioemu does write the correct vslots value into xenstore, but looks xend can't get the correct value somwhow. Could you help to have a look? Thanks!

-- Dexuan

#3 lore raw
Quoted 8 lines · Dexuan
Quoted 7 lines · Simon Horman

Hi,

in preparation for 3.4.0 I have made a number of updates to the VT-d Howto. I have tried to retain the original information while reorganising things a bit. I have also added information on recent work I have done in this area.

Quoted 8 lines
Quoted 3 lines

Apologies in advance for any errors, accidental deletions, etc...

http://wiki.xensource.com/xenwiki/VTdHowTo

Hi Simon,
There is a bug: we can't pci-detach a statically-assigned (I mean: use the pci string in hvm config file) devices for hvm guest.
Accordong my limited experience, after a device is assigned to hvm guest, ioemu does write the correct vslots value into xenstore, but looks xend can't get the correct value somwhow. Could you help to have a look? Thanks!

Sure, I can look into that. Do you have a version that you are worried about? It did seem to work the last time that I checked.

Signature · 3 lines
Simon Horman
  VA Linux Systems Japan K.K. Satellite Lab in Sydney, Australia
  H: www.vergenet.net/~horms/            W: www.valinux.co.jp/en
#4 lore raw
In reply to Simon Horman

You may also want to mention the various boot time parameters (or at least some of them). The following comment is snipped from xen/drivers/passthrough/iommu.c.

eSk

/*
* The 'iommu' parameter enables the IOMMU. Optional comma separated
* value may contain:
*

 *   off|no|false|disable       Disable IOMMU (default)
 *   pv                         Enable IOMMU for PV domains
 *   no-pv                      Disable IOMMU for PV domains (default)
 *   force|required             Don't boot unless IOMMU is enabled
 *   passthrough                Enable VT-d DMA passthrough (no DMA
 *                              translation for Dom0)
 *   no-snoop                   Disable VT-d Snoop Control
 *   no-qinval                  Disable VT-d Queued Invalidation
 *   no-intremap                Disable VT-d Interrupt Remapping

*/

[Simon Horman]

Quoted 19 lines

Hi,
in preparation for 3.4.0 I have made a number of updates to the VT-d Howto. I have tried to retain the original information while reorganising things a bit. I have also added information on recent work I have done in this area.

Apologies in advance for any errors, accidental deletions, etc...

http://wiki.xensource.com/xenwiki/VTdHowTo

Signature · 9 lines
Simon Horman
  VA Linux Systems Japan K.K. Satellite Lab in Sydney, Australia
  H: www.vergenet.net/~horms/            W: www.valinux.co.jp/en


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
#5 lore raw
Quoted 19 lines · Espen Skoglund

You may also want to mention the various boot time parameters (or at least some of them). The following comment is snipped from xen/drivers/passthrough/iommu.c.

eSk

/*
* The 'iommu' parameter enables the IOMMU. Optional comma separated
* value may contain:
*

 *   off|no|false|disable       Disable IOMMU (default)
 *   pv                         Enable IOMMU for PV domains
 *   no-pv                      Disable IOMMU for PV domains (default)
 *   force|required             Don't boot unless IOMMU is enabled
 *   passthrough                Enable VT-d DMA passthrough (no DMA
 *                              translation for Dom0)
 *   no-snoop                   Disable VT-d Snoop Control
 *   no-qinval                  Disable VT-d Queued Invalidation
 *   no-intremap                Disable VT-d Interrupt Remapping
Quoted 1 line

*/

Thanks, that is a good point. Though to be honest I'm not entirely sure what the last 3 options do.

Signature · 3 lines
Simon Horman
  VA Linux Systems Japan K.K. Satellite Lab in Sydney, Australia
  H: www.vergenet.net/~horms/            W: www.valinux.co.jp/en
#6 lore raw
In reply to Simon Horman

Hi, Simon
I've read it, and it's much more complete than before. Thanks a lot. Beside, you don't write about the library PCI devel that you need when you compile Xen to enable PCI passtrought, and so, the use of VT-d. Debian package is libpci_dev.
Is this library still necessary to use VT-d? If yes, shouldn't you write about it in this wiki page?

Quoted 1 line

From my experience, I lost some times before finding that I had to compil

with this lib.
Hope this will help someone.

Bye

Léonard

Quoted 26 lines · Simon Horman

Hi,

in preparation for 3.4.0 I have made a number of updates to the VT-d Howto.
I have tried to retain the original information while reorganising things a
bit. I have also added information on recent work I have done in this area.

Apologies in advance for any errors, accidental deletions, etc...

http://wiki.xensource.com/xenwiki/VTdHowTo

Signature · 9 lines
Simon Horman
  VA Linux Systems Japan K.K. Satellite Lab in Sydney, Australia
  H: www.vergenet.net/~horms/            W: www.valinux.co.jp/en


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Signature · 2 lines
View this message in context: http://www.nabble.com/VT-d-HowTo-Update-tp23150620p23156969.html
Sent from the Xen - Dev mailing list archive at Nabble.com.
#7 lore raw
Quoted 10 lines · Leonard Michelet

Hi, Simon
I've read it, and it's much more complete than before. Thanks a lot. Beside, you don't write about the library PCI devel that you need when you compile Xen to enable PCI passtrought, and so, the use of VT-d. Debian package is libpci_dev.
Is this library still necessary to use VT-d? If yes, shouldn't you write about it in this wiki page?

Quoted 1 line

From my experience, I lost some times before finding that I had to compil

with this lib.

Yes, I lost some time due to that too, and it is neccessary.

I tried to avoid discussing compilation issues as its a bit of a can of worms because they are usually very dependant on the system in use. But this probably is worth a mention.

Signature · 3 lines
Simon Horman
  VA Linux Systems Japan K.K. Satellite Lab in Sydney, Australia
  H: www.vergenet.net/~horms/            W: www.valinux.co.jp/en
#8 lore raw
Quoted 9 lines · Simon Horman
Quoted 8 lines · Leonard Michelet

Hi, Simon
I've read it, and it's much more complete than before. Thanks a lot. Beside, you don't write about the library PCI devel that you need when you compile Xen to enable PCI passtrought, and so, the use of VT-d. Debian package is libpci_dev.
Is this library still necessary to use VT-d? If yes, shouldn't you write about it in this wiki page?

Quoted 8 lines
Quoted 2 lines
Quoted 1 line

From my experience, I lost some times before finding that I had to compil

with this lib.

Yes, I lost some time due to that too, and it is neccessary.

I tried to avoid discussing compilation issues as its a bit of a can of worms because they are usually very dependant on the system in use. But this probably is worth a mention.

I have updated the HowTo with some information on this.

http://wiki.xensource.com/xenwiki/VTdHowTo

Signature · 3 lines
Simon Horman
  VA Linux Systems Japan K.K. Satellite Lab in Sydney, Australia
  H: www.vergenet.net/~horms/            W: www.valinux.co.jp/en
#9 lore raw
Quoted 15 lines · Simon Horman
Quoted 14 lines · Simon Horman
Quoted 10 lines · Leonard Michelet

Hi, Simon
I've read it, and it's much more complete than before. Thanks a lot. Beside, you don't write about the library PCI devel that you need when you compile Xen to enable PCI passtrought, and so, the use of VT-d. Debian package is libpci_dev.
Is this library still necessary to use VT-d? If yes, shouldn't you write about it in this wiki page?

Quoted 1 line

From my experience, I lost some times before finding that I had to compil

with this lib.

Yes, I lost some time due to that too, and it is neccessary.

Quoted 8 lines
Quoted 3 lines

I tried to avoid discussing compilation issues as its a bit of a can of worms because they are usually very dependant on the system in use. But this probably is worth a mention.

I have updated the HowTo with some information on this.

http://wiki.xensource.com/xenwiki/VTdHowTo

Some typo i guess.

Quoted 1 line

From VTdHowTo:

"VT-d Device Hot-Unplug

VT-d hot-unplug refers to detaching a pass-through device from a running HVM domain. The device may have been attached using boot-time VT-d device pass-through or VT-d device hot-plug.

xm's pci-attach command is used to perform hot-unplug."

              ^^^^^

should be detach right?

Quoted 11 lines

--
Simon Horman
 VA Linux Systems Japan K.K. Satellite Lab in Sydney, Australia
 H: www.vergenet.net/~horms/            W: www.valinux.co.jp/en

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

#10 lore raw
Quoted 30 lines · Tej
Quoted 15 lines · Simon Horman
Quoted 14 lines · Simon Horman
Quoted 10 lines · Leonard Michelet

Hi, Simon
I've read it, and it's much more complete than before. Thanks a lot. Beside, you don't write about the library PCI devel that you need when you compile Xen to enable PCI passtrought, and so, the use of VT-d. Debian package is libpci_dev.
Is this library still necessary to use VT-d? If yes, shouldn't you write about it in this wiki page?

Quoted 1 line

From my experience, I lost some times before finding that I had to compil

with this lib.

Yes, I lost some time due to that too, and it is neccessary.

Quoted 8 lines
Quoted 3 lines

I tried to avoid discussing compilation issues as its a bit of a can of worms because they are usually very dependant on the system in use. But this probably is worth a mention.

I have updated the HowTo with some information on this.

http://wiki.xensource.com/xenwiki/VTdHowTo

Some typo i guess.

Quoted 1 line

From VTdHowTo:

"VT-d Device Hot-Unplug

Quoted 7 lines

VT-d hot-unplug refers to detaching a pass-through device from a running HVM domain. The device may have been attached using boot-time VT-d device pass-through or VT-d device hot-plug.

xm's pci-attach command is used to perform hot-unplug."

              ^^^^^

should be detach right?

Thanks, I have now fixed that.

Signature · 3 lines
Simon Horman
  VA Linux Systems Japan K.K. Satellite Lab in Sydney, Australia
  H: www.vergenet.net/~horms/            W: www.valinux.co.jp/en