Hello, I have a question about xen-detect.c (which is posted http://lists.xensource.com/archives/html/xen-changelog/2007-02/msg00075.htmlhere) 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-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Well, I''m not sure about the internals of Xen, but I can read C. It looks like it should be able to detect HVM and PV. What it does is: Executes some assembly code to get the id of the cpu If that returns "XenVMMXenVMM" then we''re running Xen in HVM mode Otherwise it tests for PV mode. It executes the same assembly code, but this time in pv context (which will only work on a PV machine) If that succeeds then we''re running Xen in PV mode. If that fails then we''re not running Xen. Jeff On 26/05/09 11:51, 정희동 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? > > If it is true then can anyone explain me how this can detect xen? > > Thank you in advance. > ------------------------------------------------------------------------ > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thank you very much. You helped me a lot =) 2009/5/26 Jeff Williams <jeffw@globaldial.com>> Well, I''m not sure about the internals of Xen, but I can read C. It looks > like it should be able to detect HVM and PV. > > What it does is: > > Executes some assembly code to get the id of the cpu > > If that returns "XenVMMXenVMM" then we''re running Xen in HVM mode > > Otherwise it tests for PV mode. > > It executes the same assembly code, but this time in pv context (which will > only work on a PV machine) > > If that succeeds then we''re running Xen in PV mode. > > If that fails then we''re not running Xen. > > Jeff > > > On 26/05/09 11:51, 정희동 wrote: > >> Hello, I have a question about xen-detect.c (which is posted >> http://lists.xensource.com/archives/html/xen-changelog/2007-02/msg00075.htmlhere) >> 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-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Maybe Matching Threads
- Re: Name resolution not working inside virt-customize
- [PATCH 2/4] xen: switch to use hypervisor_cpuid_base()
- [PATCH 2/4] xen: switch to use hypervisor_cpuid_base()
- [PATCH 2/4] xen: switch to use hypervisor_cpuid_base()
- Re: Name resolution not working inside virt-customize