aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Egger <Christoph.Egger@amd.com>2011-04-13 14:14:32 +0100
committerChristoph Egger <Christoph.Egger@amd.com>2011-04-13 14:14:32 +0100
commitac904f69e1b89d9cb70855aaae396cb79ffad8cc (patch)
treee7e9b25010f43d365401b3faf90df8a961a10071
parentd0c9dab138e5d449eb46dfd384af6ca9e5b539ee (diff)
downloadxen-ac904f69e1b89d9cb70855aaae396cb79ffad8cc.tar.gz
xen-ac904f69e1b89d9cb70855aaae396cb79ffad8cc.tar.bz2
xen-ac904f69e1b89d9cb70855aaae396cb79ffad8cc.zip
x86/hvm/asid: Use C99 integer types for asid numbers
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
-rw-r--r--xen/arch/x86/hvm/asid.c8
-rw-r--r--xen/include/asm-x86/hvm/vcpu.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/xen/arch/x86/hvm/asid.c b/xen/arch/x86/hvm/asid.c
index 473b0216e4..1cccaf53d5 100644
--- a/xen/arch/x86/hvm/asid.c
+++ b/xen/arch/x86/hvm/asid.c
@@ -48,9 +48,9 @@
/* Per-CPU ASID management. */
struct hvm_asid_data {
- u64 core_asid_generation;
- u32 next_asid;
- u32 max_asid;
+ uint64_t core_asid_generation;
+ uint32_t next_asid;
+ uint32_t max_asid;
bool_t disabled;
};
@@ -58,7 +58,7 @@ static DEFINE_PER_CPU(struct hvm_asid_data, hvm_asid_data);
void hvm_asid_init(int nasids)
{
- static s8 g_disabled = -1;
+ static int8_t g_disabled = -1;
struct hvm_asid_data *data = &this_cpu(hvm_asid_data);
data->max_asid = nasids - 1;
diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h
index a5e3401fe0..eabecaaccc 100644
--- a/xen/include/asm-x86/hvm/vcpu.h
+++ b/xen/include/asm-x86/hvm/vcpu.h
@@ -100,8 +100,8 @@ struct hvm_vcpu {
bool_t hcall_preempted;
bool_t hcall_64bit;
- u64 asid_generation;
- u32 asid;
+ uint64_t asid_generation;
+ uint32_t asid;
u32 msr_tsc_aux;