|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen stable-4.3] x86/tboot: invalidate FIX_TBOOT_MAP_ADDRESS mapping after use
commit 00eba3b0bc5db6933e1c920c6e51028315d559c9
Author: Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Thu Mar 12 14:22:10 2015 +0100
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Mar 12 14:22:10 2015 +0100
x86/tboot: invalidate FIX_TBOOT_MAP_ADDRESS mapping after use
In order for commit cbeeaa7d ("x86/nmi: fix shootdown of pcpus
running in VMX non-root mode")'s re-use of that fixmap entry to not
cause undesirable (in crash context) cross-CPU TLB flushes, invalidate
the fixmap entry right after use.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
master commit: 375a09cffacff820e025c65d0cdfbd403ecb30cc
master date: 2015-03-04 09:59:47 +0100
---
xen/arch/x86/tboot.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/xen/arch/x86/tboot.c b/xen/arch/x86/tboot.c
index 1eed2e3..245d22c 100644
--- a/xen/arch/x86/tboot.c
+++ b/xen/arch/x86/tboot.c
@@ -140,6 +140,7 @@ void __init tboot_probe(void)
TXT_PUB_CONFIG_REGS_BASE + TXTCR_SINIT_BASE);
tboot_copy_memory((unsigned char *)&sinit_size, sizeof(sinit_size),
TXT_PUB_CONFIG_REGS_BASE + TXTCR_SINIT_SIZE);
+ __set_fixmap(FIX_TBOOT_MAP_ADDRESS, 0, 0);
}
/* definitions from xen/drivers/passthrough/vtd/iommu.h
@@ -477,6 +478,8 @@ int __init tboot_parse_dmar_table(acpi_table_handler
dmar_handler)
dmar_table_raw = xmalloc_array(unsigned char, dmar_table_length);
tboot_copy_memory(dmar_table_raw, dmar_table_length, pa);
dmar_table = (struct acpi_table_header *)dmar_table_raw;
+ __set_fixmap(FIX_TBOOT_MAP_ADDRESS, 0, 0);
+
rc = dmar_handler(dmar_table);
xfree(dmar_table_raw);
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.3
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |