diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-12-11 08:56:50 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-12-11 08:56:50 +0000 |
commit | 74168b7082a2baa296ecc9dc420b1809581d0d00 (patch) | |
tree | dd13a366d927a2a8ca78ae64cfeecc4b70337df2 /xen/include/asm-x86/mm.h | |
parent | 31468298412d7769a7263c2c471aaddb15783ae6 (diff) | |
download | xen-74168b7082a2baa296ecc9dc420b1809581d0d00.tar.gz xen-74168b7082a2baa296ecc9dc420b1809581d0d00.tar.bz2 xen-74168b7082a2baa296ecc9dc420b1809581d0d00.zip |
memory hotadd 5/7: Sync changes to mapping changes caused by memory
hotplug in page fault handler.
In compact guest situation, the compat m2p table is copied, not
directly mapped in L3, so we have to sync it. Direct mapping range
may changes, and we need sync it with guest's table.
Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
Diffstat (limited to 'xen/include/asm-x86/mm.h')
-rw-r--r-- | xen/include/asm-x86/mm.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/xen/include/asm-x86/mm.h b/xen/include/asm-x86/mm.h index e2134d4f07..b259c486e5 100644 --- a/xen/include/asm-x86/mm.h +++ b/xen/include/asm-x86/mm.h @@ -476,6 +476,21 @@ int ptwr_do_page_fault(struct vcpu *, unsigned long, int audit_adjust_pgtables(struct domain *d, int dir, int noisy); +#ifdef CONFIG_X86_64 +extern int pagefault_by_memadd(unsigned long addr, struct cpu_user_regs *regs); +extern int handle_memadd_fault(unsigned long addr, struct cpu_user_regs *regs); +#else +int pagefault_by_memadd(unsigned long addr, struct cpu_user_regs *regs) +{ + return 0; +} + +int handle_memadd_fault(unsigned long addr, struct cpu_user_regs *regs) +{ + return 0; +} +#endif + #ifndef NDEBUG #define AUDIT_SHADOW_ALREADY_LOCKED ( 1u << 0 ) |