mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86/hvm/asid: Use C99 integer types for asid numbers
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
This commit is contained in:
1 parent
d0c9dab138
commit
ac904f69e1
2 files changed
+6
-6
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||