Skip to contentSkip to conversation

xen-detect.c question.

DISCUSSION 정희동 4 participants 5 messages May 26, 2009 – May 27, 2009

lore
Share & tools
lore

정희동

author
#0 lore raw

Hello, I have a question about xen-detect.c (which is posted
http://lists.xensource.com/archives/html/xen-changelog/2007-02/msg00075.html
here)

It says that by running this program xen PV and HVM can be detected.

First of all, is it true that it can detect HVM (hardware support Xen)? Can anyone confirm this?

If it is true then can anyone explain me how this can detect xen?

Thank you in advance.

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

#1 lore raw

Hi,

Quoted 9 lines · 정희동

Hello, I have a question about xen-detect.c (which is posted
http://lists.xensource.com/archives/html/xen-changelog/2007-02/msg00075.html
here)

It says that by running this program xen PV and HVM can be detected.

First of all, is it true that it can detect HVM (hardware support Xen)? Can anyone confirm this?

Yes, you should also confirm it.

Quoted 2 lines

If it is true then can anyone explain me how this can detect xen?

See the following thread.
http://thread.gmane.org/gmane.comp.emulators.kvm.devel/22643

Best Regards,

Akio Takebe

author
#2 lore raw

Hello,

Thank you so much for the reply =)

I will confirm it myself soon.

2009/5/26 Akio Takebe <[email protected]>

Quoted 16 lines

Hi,

Quoted 11 lines · 정희동

Hello, I have a question about xen-detect.c (which is posted

http://lists.xensource.com/archives/html/xen-changelog/2007-02/msg00075.html
here)

It says that by running this program xen PV and HVM can be detected.

First of all, is it true that it can detect HVM (hardware support Xen)? Can anyone confirm this?

Yes, you should also confirm it.

Quoted 9 lines

If it is true then can anyone explain me how this can detect xen?

Quoted 2 lines

See the following thread.

http://thread.gmane.org/gmane.comp.emulators.kvm.devel/22643

Best Regards,

Akio Takebe

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

#3 lore raw

Wrt xen implementation, you can take a look at the function cpuid_hypervisor_leaves.
The min leaf for xen (MSR base address) is 0x40000000.

Btw, I don't follow the special handling of viridian domains in cpuid_hypervisor_leaves, when its taken care of in cpuid_viridian_leaves (both called from hvm_cpuid). Is it dead code ?

-dulloor

***CL final (Barca vs Man-U) - 2:30 PM (EST)***

2009/5/26 정희동 <[email protected]>

Quoted 31 lines

Hello,

Thank you so much for the reply =)

I will confirm it myself soon.

2009/5/26 Akio Takebe <[email protected]>

Quoted 23 lines

Hi,

Quoted 11 lines · 정희동

Hello, I have a question about xen-detect.c (which is posted

http://lists.xensource.com/archives/html/xen-changelog/2007-02/msg00075.html
here)

It says that by running this program xen PV and HVM can be detected.

First of all, is it true that it can detect HVM (hardware support Xen)? Can anyone confirm this?

Yes, you should also confirm it.

If it is true then can anyone explain me how this can detect xen?

Quoted 2 lines

See the following thread.

http://thread.gmane.org/gmane.comp.emulators.kvm.devel/22643

Best Regards,

Quoted 10 lines
Quoted 2 lines

Akio Takebe

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

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

#4 lore raw
Quoted 5 lines · Dulloor

Wrt xen implementation, you can take a look at the function cpuid_hypervisor_leaves. The min leaf for xen (MSR base address) is 0x40000000.

Btw, I don't follow the special handling of viridian domains in cpuid_hypervisor_leaves, when its taken care of in cpuid_viridian_leaves (both called from hvm_cpuid). Is it dead code ?

Viridian's CPUID leaves live at the same place as Xen's do (the idea being, that's where you look to find out which hypervisor is running). When we expose both interfaces, we need to move the Xen ones to a different set of leaves. When PV-on-HVM drivers find a hypervisor at 0x40000000 that isn't the one they were expecting, they should keep looking at 0x100 increments until they find either the one they want or zero.

Cheers,

Tim.

Quoted 37 lines

-dulloor

***CL final (Barca vs Man-U) - 2:30 PM (EST)***

2009/5/26 ?????? <[email protected]<mailto:[email protected]>> Hello,

Thank you so much for the reply =)

I will confirm it myself soon.

2009/5/26 Akio Takebe <[email protected]<mailto:[email protected]>>

Hi,

?????? wrote:
Hello, I have a question about xen-detect.c (which is posted
http://lists.xensource.com/archives/html/xen-changelog/2007-02/msg00075.html
here)

It says that by running this program xen PV and HVM can be detected.

First of all, is it true that it can detect HVM (hardware support Xen)? Can anyone confirm this?

Yes, you should also confirm it.

If it is true then can anyone explain me how this can detect xen?

See the following thread.
http://thread.gmane.org/gmane.comp.emulators.kvm.devel/22643

Best Regards,

Quoted 9 lines

Akio Takebe

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

Content-Description: ATT00001.txt

Quoted 4 lines

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

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