aboutsummaryrefslogtreecommitdiffstats
path: root/tools/misc/xen-detect.c
Commit message (Collapse)AuthorAgeFilesLines
* tools/x86_64: Fix cpuid() inline asm to not clobber stack's red zoneKeir Fraser2011-12-021-7/+10
| | | | | | | | | | Pushing stuff onto the stack on x86-64 when we do not specify -mno-red-zone is unsafe. Since the complicated asm is due to register pressure on i386, we simply implement an all-new simpler alternative for x86-64. Signed-off-by: Keir Fraser <keir@xen.org> Acked-by: Jan Beulich <jbeulich@novell.com>
* xen-detect: Fix cpuid asm for 32-bit PIC compilation.Keir Fraser2011-06-171-17/+20
| | | | Signed-off-by: Keir Fraser <keir@xen.org>
* tools/xen-detect: fix printing xen versionKeir Fraser2010-02-031-1/+1
| | | | | | | check_for_xen() should return xen version rather than boolean true if signature XenVMM is found. Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
* xen-detect: Add command-line arguments.Keir Fraser2009-12-231-9/+70
| | | | | | | | - Usage info - Quiesce normal output - Affect exit status if running in unexpected context Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xen-detect: Avoid dumping coreKeir Fraser2009-12-141-38/+20
| | | | | | | | | | | | | | F12 introduces a tool to automatically report bugs when there are core dumps. Since xen-detect relies on fork+waitpid in order to trap a SIGILL from a child, every time someone runs xen-detect on a bare metal kernel a bug is reported into Red Hat's Bugzilla. :-) However, even without this contingent need, leaving core dumps around is not nice. So this patch just traps SIGILL using signal/sentjmp/longjmp, without the need to fork. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86 hvm: Guests should scan CPUID range 40000000-4000ff00 for Xen leaves.Keir Fraser2009-09-161-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86: Update xen-detect utility to scan for Xen signature in CPUID space.Keir Fraser2008-12-161-8/+16
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Fix xen-detect build.kfraser@localhost.localdomain2007-02-081-0/+1
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Add example xen-detect.c code for detecting application execution inKeir Fraser2007-02-081-0/+107
Xen PV or HVM contexts, using the Xen CPUID extensions. Signed-off-by: Keir Fraser <keir@xensource.com>