Skip to contentSkip to conversation

Intel VT-d Support

DISCUSSION Igor Chubin 3 participants 5 messages Mar 5, 2008 – Mar 6, 2008

lore
Share & tools
lore
#0 lore raw

Hello all,

please tell me, how can I be sure that
my Xen installation is built with Intel VT-d support?

Something like

xm info | grep -i KEY-REGULAR-EXPRESSION
xm dmesg | grep -i KEY-REGULAR-EXPRESSION

What a line should I look for?

And if my installation was really built with VT-d support, how can I be sure, that Xen has successfully initialized VT-d hardware?

I have read [1] and the lists archives
and found no answers for my question.

Thank you in advance.

[1] http://wiki.xensource.com/xenwiki/VTdHowTo

Signature · 7 lines
WBR, i.m.chubin


_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users
#1 lore raw
Quoted 10 lines · Igor Chubin

Hello all,

please tell me, how can I be sure that
my Xen installation is built with Intel VT-d support?

Something like

xm info | grep -i KEY-REGULAR-EXPRESSION
xm dmesg | grep -i KEY-REGULAR-EXPRESSION

Use "xm dmesg | grep -i vt-d".

Quoted 2 lines

What a line should I look for?

Find the line "Intel VT-d has been enabled."

Quoted 3 lines

And if my installation was really built with VT-d support, how can I be sure, that Xen has successfully initialized VT-d hardware?

Try assigning a pci device to hvm guest as [1] describes. If vt-d is not enabled or the device is not hidden, the guest creation will fail. otherwise, you can use lspci in the guest to find out the device assigned.

Quoted 10 lines

I have read [1] and the lists archives
and found no answers for my question.

Thank you in advance.

[1] http://wiki.xensource.com/xenwiki/VTdHowTo

-- haicheng

#2 lore raw

Thank you for answers,

Quoted 7 lines · Haicheng
Quoted 6 lines · Igor Chubin

Hello all,

please tell me, how can I be sure that
my Xen installation is built with Intel VT-d support?

Quoted 6 lines
Quoted 4 lines

Something like

xm info | grep -i KEY-REGULAR-EXPRESSION
xm dmesg | grep -i KEY-REGULAR-EXPRESSION

Use "xm dmesg | grep -i vt-d".

There are no strings found
even with VT-d enabled in BIOS.

# xm dmesg | grep vt
# xm dmesg | grep -i vt 

How can I check if Xen-code was built with
VT-d support?

(I have tried to use VT-d on precompiled Debian binaries of Xen 3.2 and on xen-unstable with default build options)

Quoted 5 lines
Quoted 3 lines

What a line should I look for?

Find the line "Intel VT-d has been enabled."

So this line must be shown in xm dmesg.
Thank you.

No I must find the reason why there no such a line.

Quoted 9 lines
Quoted 4 lines

And if my installation was really built with VT-d support, how can I be sure, that Xen has successfully initialized VT-d hardware?

Try assigning a pci device to hvm guest as [1] describes. If vt-d is not enabled or the device is not hidden, the guest creation will fail. otherwise, you can use lspci in the guest to find out the device assigned.

Yes, guest creation fails with the message:

# xm create win2k3_clone

Using config file "/etc/xen/win2k3_clone".
Error: Fail to assign device(7:9.0): maybe VT-d is not enabled, or the device is not exist, or it has already been assigned to other domain

For pv domains all works fine.

Quoted 15 lines
Quoted 11 lines

I have read [1] and the lists archives
and found no answers for my question.

Thank you in advance.

[1] http://wiki.xensource.com/xenwiki/VTdHowTo

-- haicheng

Signature · 1 line
WBR, i.m.chubin
#3 lore raw
Quoted 7 lines · Igor Chubin
Quoted 1 line

Find the line "Intel VT-d has been enabled."

So this line must be shown in xm dmesg.
Thank you.

No I must find the reason why there no such a line.

You need the Xen boot parameter 'vtd' and a suitable VT-d-compatible chipset.

-- Keir

#4 lore raw
In reply to Igor Chubin
Quoted 6 lines

There are no strings found
even with VT-d enabled in BIOS.

# xm dmesg | grep vt
# xm dmesg | grep -i vt

Make sure you have added vtd=1 in xen line of grub entry; look into [1], there is an example.

Quoted 6 lines

How can I check if Xen-code was built with
VT-d support?

(I have tried to use VT-d on precompiled Debian binaries of Xen 3.2 and on xen-unstable with default build options)

Not sure debian binary but xen-unstable enables vt-d by default.

Quoted 11 lines
Quoted 5 lines
Quoted 3 lines

What a line should I look for?

Find the line "Intel VT-d has been enabled."

So this line must be shown in xm dmesg.
Thank you.

No I must find the reason why there no such a line.

Firstly make sure vt-d is enabled in bios. If your chipset really supports vt-d and xm dmesg has such a line as "No DMAR devices found" or any dmar related error, that would mean your bios needs to be upgraded.

Quoted 11 lines
Quoted 9 lines
Quoted 4 lines

And if my installation was really built with VT-d support, how can I be sure, that Xen has successfully initialized VT-d hardware?

Try assigning a pci device to hvm guest as [1] describes. If vt-d is not enabled or the device is not hidden, the guest creation will fail. otherwise, you can use lspci in the guest to find out the device assigned.

Quoted 8 lines

Yes, guest creation fails with the message:

# xm create win2k3_clone

Using config file "/etc/xen/win2k3_clone".
Error: Fail to assign device(7:9.0): maybe VT-d is not enabled, or the device is not exist, or it has already been assigned to other domain

It is a correct behavior.

Quoted 18 lines

For pv domains all works fine.

Quoted 15 lines
Quoted 11 lines

I have read [1] and the lists archives
and found no answers for my question.

Thank you in advance.

[1] http://wiki.xensource.com/xenwiki/VTdHowTo

-- haicheng

-- haicheng