|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86: introduce clear_fixmap()
commit 071c4336ba517ef7659c9fd3ac7052183b570e57
Author: Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Thu Mar 5 13:37:04 2015 +0100
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Mar 5 13:37:04 2015 +0100
x86: introduce clear_fixmap()
... making more obvious what its so far open coded users intend.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
xen/arch/x86/domain.c | 2 +-
xen/arch/x86/io_apic.c | 2 +-
xen/arch/x86/mpparse.c | 2 +-
xen/arch/x86/msi.c | 2 +-
xen/arch/x86/tboot.c | 4 ++--
xen/include/asm-x86/fixmap.h | 2 ++
6 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c
index cfe7945..21f0766 100644
--- a/xen/arch/x86/domain.c
+++ b/xen/arch/x86/domain.c
@@ -310,7 +310,7 @@ void free_vcpu_guest_context(struct vcpu_guest_context *vgc)
{
if ( !per_cpu(vgc_pages[i], cpu) )
continue;
- __set_fixmap(idx - i, 0, 0);
+ clear_fixmap(idx - i);
free_domheap_page(per_cpu(vgc_pages[i], cpu));
per_cpu(vgc_pages[i], cpu) = NULL;
}
diff --git a/xen/arch/x86/io_apic.c b/xen/arch/x86/io_apic.c
index 01f816b..976c0c5 100644
--- a/xen/arch/x86/io_apic.c
+++ b/xen/arch/x86/io_apic.c
@@ -2552,7 +2552,7 @@ void __init init_ioapic_mappings(void)
if ( bad_ioapic_register(i) )
{
- __set_fixmap(idx, 0, 0);
+ clear_fixmap(idx);
continue;
}
diff --git a/xen/arch/x86/mpparse.c b/xen/arch/x86/mpparse.c
index a38e016..003c56e 100644
--- a/xen/arch/x86/mpparse.c
+++ b/xen/arch/x86/mpparse.c
@@ -541,7 +541,7 @@ static inline void __init construct_default_ISA_mptable(int
mpc_default_type)
static __init void efi_unmap_mpf(void)
{
if (efi_enabled)
- __set_fixmap(FIX_EFI_MPF, 0, 0);
+ clear_fixmap(FIX_EFI_MPF);
}
static struct intel_mp_floating *__initdata mpf_found;
diff --git a/xen/arch/x86/msi.c b/xen/arch/x86/msi.c
index 14d37ec..39f3d68 100644
--- a/xen/arch/x86/msi.c
+++ b/xen/arch/x86/msi.c
@@ -112,7 +112,7 @@ static void msix_put_fixmap(struct arch_msix *msix, int idx)
if ( --msix->table_refcnt[i] == 0 )
{
- __set_fixmap(idx, 0, 0);
+ clear_fixmap(idx);
msix_fixmap_free(idx);
msix->table_idx[i] = 0;
}
diff --git a/xen/arch/x86/tboot.c b/xen/arch/x86/tboot.c
index ca4839e..ea1eea0 100644
--- a/xen/arch/x86/tboot.c
+++ b/xen/arch/x86/tboot.c
@@ -138,7 +138,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);
+ clear_fixmap(FIX_TBOOT_MAP_ADDRESS);
}
/* definitions from xen/drivers/passthrough/vtd/iommu.h
@@ -477,7 +477,7 @@ 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);
+ clear_fixmap(FIX_TBOOT_MAP_ADDRESS);
rc = dmar_handler(dmar_table);
xfree(dmar_table_raw);
diff --git a/xen/include/asm-x86/fixmap.h b/xen/include/asm-x86/fixmap.h
index ebb3207..70eadff 100644
--- a/xen/include/asm-x86/fixmap.h
+++ b/xen/include/asm-x86/fixmap.h
@@ -78,6 +78,8 @@ extern void __set_fixmap(
#define set_fixmap_nocache(idx, phys) \
__set_fixmap(idx, (phys)>>PAGE_SHIFT, PAGE_HYPERVISOR_NOCACHE)
+#define clear_fixmap(idx) __set_fixmap(idx, 0, 0)
+
#define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT))
#define __virt_to_fix(x) ((FIXADDR_TOP - ((x)&PAGE_MASK)) >> PAGE_SHIFT)
--
generated by git-patchbot for /home/xen/git/xen.git#master
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |