diff options
author | Tim Deegan <tim@xen.org> | 2013-03-07 12:37:12 +0000 |
---|---|---|
committer | Tim Deegan <tim@xen.org> | 2013-03-14 10:33:46 +0000 |
commit | e8c211d80c9d80d4eef09c5d1121f7ef17b61f73 (patch) | |
tree | 2123e02dcb76c2834447cf115c6cb27ab4d0ef77 /xen/include/asm-x86/domain.h | |
parent | ec41430ef6a7385f73bd69facc1cb77443ccc6f3 (diff) | |
download | xen-e8c211d80c9d80d4eef09c5d1121f7ef17b61f73.tar.gz xen-e8c211d80c9d80d4eef09c5d1121f7ef17b61f73.tar.bz2 xen-e8c211d80c9d80d4eef09c5d1121f7ef17b61f73.zip |
x86/mm: use bool_t for flags in shadow-pagetable structs
and reshuffle the domain struct to pack a little better.
Signed-off-by: Tim Deegan <tim@xen.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'xen/include/asm-x86/domain.h')
-rw-r--r-- | xen/include/asm-x86/domain.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/xen/include/asm-x86/domain.h b/xen/include/asm-x86/domain.h index 97e09caaec..fd9fa0f231 100644 --- a/xen/include/asm-x86/domain.h +++ b/xen/include/asm-x86/domain.h @@ -98,23 +98,23 @@ struct shadow_domain { /* 1-to-1 map for use when HVM vcpus have paging disabled */ pagetable_t unpaged_pagetable; + /* reflect guest table dirty status, incremented by write + * emulation and remove write permission */ + atomic_t gtable_dirty_version; + /* Shadow hashtable */ struct page_info **hash_table; - int hash_walking; /* Some function is walking the hash table */ + bool_t hash_walking; /* Some function is walking the hash table */ /* Fast MMIO path heuristic */ - int has_fast_mmio_entries; - - /* reflect guest table dirty status, incremented by write - * emulation and remove write permission - */ - atomic_t gtable_dirty_version; + bool_t has_fast_mmio_entries; /* OOS */ - int oos_active; - int oos_off; + bool_t oos_active; + bool_t oos_off; - int pagetable_dying_op; + /* Has this domain ever used HVMOP_pagetable_dying? */ + bool_t pagetable_dying_op; }; struct shadow_vcpu { @@ -142,7 +142,7 @@ struct shadow_vcpu { unsigned long off[SHADOW_OOS_FIXUPS]; } oos_fixup[SHADOW_OOS_PAGES]; - int pagetable_dying; + bool_t pagetable_dying; }; /************************************************/ |