-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 174750 b: refs/heads/master c: 1ccbf53 h: refs/heads/master v: v3
- Loading branch information
Jeremy Fitzhardinge
authored and
Jesse Barnes
committed
Nov 4, 2009
1 parent
b2a4967
commit cc644d8
Showing
16 changed files
with
55 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 9a08f7d3506019e3833cd4394ca0d7da0ae3689f | ||
refs/heads/master: 1ccbf5344c3daef046d2323190cc6807c44f1917 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#include <linux/notifier.h> | ||
|
||
#include <xen/xen.h> | ||
#include <xen/xenbus.h> | ||
|
||
#include <asm/xen/hypervisor.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#ifndef _XEN_XEN_H | ||
#define _XEN_XEN_H | ||
|
||
enum xen_domain_type { | ||
XEN_NATIVE, /* running on bare hardware */ | ||
XEN_PV_DOMAIN, /* running in a PV domain */ | ||
XEN_HVM_DOMAIN, /* running in a Xen hvm domain */ | ||
}; | ||
|
||
#ifdef CONFIG_XEN | ||
extern enum xen_domain_type xen_domain_type; | ||
#else | ||
#define xen_domain_type XEN_NATIVE | ||
#endif | ||
|
||
#define xen_domain() (xen_domain_type != XEN_NATIVE) | ||
#define xen_pv_domain() (xen_domain() && \ | ||
xen_domain_type == XEN_PV_DOMAIN) | ||
#define xen_hvm_domain() (xen_domain() && \ | ||
xen_domain_type == XEN_HVM_DOMAIN) | ||
|
||
#ifdef CONFIG_XEN_DOM0 | ||
#include <xen/interface/xen.h> | ||
#include <asm/xen/hypervisor.h> | ||
|
||
#define xen_initial_domain() (xen_pv_domain() && \ | ||
xen_start_info->flags & SIF_INITDOMAIN) | ||
#else /* !CONFIG_XEN_DOM0 */ | ||
#define xen_initial_domain() (0) | ||
#endif /* CONFIG_XEN_DOM0 */ | ||
|
||
#endif /* _XEN_XEN_H */ |