[tip:x86/iommu] x86, doc: Adding comments about .iommu_table and its neighbors.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: tip-bot for Konrad Rzeszutek Wilk
Date: Friday, August 27, 2010 - 6:54 pm

Commit-ID:  6f44d0337cc54a46e83b4c8a6195607e78fff71d
Gitweb:     http://git.kernel.org/tip/6f44d0337cc54a46e83b4c8a6195607e78fff71d
Author:     Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
AuthorDate: Fri, 27 Aug 2010 14:19:33 -0400
Committer:  H. Peter Anvin <hpa@zytor.com>
CommitDate: Fri, 27 Aug 2010 18:14:31 -0700

x86, doc: Adding comments about .iommu_table and its neighbors.

Updating the linker section with comments about .iommu_table and
some other ones that I know of.

CC: Sam Ravnborg <sam@ravnborg.org>
CC: H. Peter Anvin <hpa@zytor.com>
CC: Fujita Tomonori <fujita.tomonori@lab.ntt.co.jp>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
LKML-Reference: <1282933173-19960-1-git-send-email-konrad.wilk@oracle.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
---
 arch/x86/kernel/vmlinux.lds.S |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S
index b92e040..3f07c37 100644
--- a/arch/x86/kernel/vmlinux.lds.S
+++ b/arch/x86/kernel/vmlinux.lds.S
@@ -242,6 +242,12 @@ SECTIONS
 		__x86_cpu_dev_end = .;
 	}
 
+	/*
+	 * start address and size of operations which during runtime
+	 * can be patched with virtualization friendly instructions or
+	 * baremetal native ones. Think page table operations.
+	 * Details in paravirt_types.h
+	 */
 	. = ALIGN(8);
 	.parainstructions : AT(ADDR(.parainstructions) - LOAD_OFFSET) {
 		__parainstructions = .;
@@ -249,6 +255,11 @@ SECTIONS
 		__parainstructions_end = .;
 	}
 
+	/*
+	 * struct alt_inst entries. From the header (alternative.h):
+	 * "Alternative instructions for different CPU types or capabilities"
+	 * Think locking instructions on spinlocks.
+	 */
 	. = ALIGN(8);
 	.altinstructions : AT(ADDR(.altinstructions) - LOAD_OFFSET) {
 		__alt_instructions = .;
@@ -256,10 +267,21 @@ SECTIONS
 		__alt_instructions_end = .;
 	}
 
+	/*
+	 * And here are the replacement instructions. The linker sticks
+	 * them as binary blobs. The .altinstructions has enough data to
+	 * get the address and the length of them to patch the kernel safely.
+	 */
 	.altinstr_replacement : AT(ADDR(.altinstr_replacement) - LOAD_OFFSET) {
 		*(.altinstr_replacement)
 	}
 
+	/*
+	 * struct iommu_table_entry entries are injected in this section.
+	 * It is an array of IOMMUs which during run time gets sorted depending
+	 * on its dependency order. After rootfs_initcall is complete
+	 * this section can be safely removed.
+	 */
 	.iommu_table : AT(ADDR(.iommu_table) - LOAD_OFFSET) {
 		__iommu_table = .;
 		*(.iommu_table)
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC PATCH v2] Modularize IOMMUs detection/init for X86, Konrad Rzeszutek Wilk, (Thu Aug 26, 10:57 am)
[PATCH 01/10] x86/iommu: Add IOMMU_INIT macros, .iommu_tab ..., Konrad Rzeszutek Wilk, (Thu Aug 26, 10:57 am)
[PATCH 02/10] x86/iommu: Make all IOMMU's detection routin ..., Konrad Rzeszutek Wilk, (Thu Aug 26, 10:57 am)
[PATCH 08/10] x86/GART/AMD-VI: Make AMD GART and IOMMU use ..., Konrad Rzeszutek Wilk, (Thu Aug 26, 10:58 am)
[PATCH 09/10] x86/VT-d: Make Intel VT-d IOMMU use IOMMU_IN ..., Konrad Rzeszutek Wilk, (Thu Aug 26, 10:58 am)
[PATCH 10/10] x86/iommu: Utilize the IOMMU_INIT macros fun ..., Konrad Rzeszutek Wilk, (Thu Aug 26, 10:58 am)
[tip:x86/iommu] x86, iommu: Add IOMMU_INIT macros, .iommu_ ..., tip-bot for Konrad R ..., (Thu Aug 26, 4:27 pm)
[tip:x86/iommu] x86, iommu: Make all IOMMU's detection rou ..., tip-bot for Konrad R ..., (Thu Aug 26, 4:28 pm)
[tip:x86/iommu] x86, GART/AMD-VI: Make AMD GART and IOMMU ..., tip-bot for Konrad R ..., (Thu Aug 26, 4:30 pm)
[tip:x86/iommu] x86, VT-d: Make Intel VT-d IOMMU use IOMMU ..., tip-bot for Konrad R ..., (Thu Aug 26, 4:30 pm)
[tip:x86/iommu] x86, iommu: Utilize the IOMMU_INIT macros ..., tip-bot for Konrad R ..., (Thu Aug 26, 4:31 pm)
Re: [PATCH 01/10] x86/iommu: Add IOMMU_INIT macros, .iommu ..., Konrad Rzeszutek Wilk, (Fri Aug 27, 7:38 am)
[PATCH] x86: Adding comments about .iommu_table and its ne ..., Konrad Rzeszutek Wilk, (Fri Aug 27, 11:19 am)
[tip:x86/iommu] x86, doc: Adding comments about .iommu_tab ..., tip-bot for Konrad R ..., (Fri Aug 27, 6:54 pm)
Re: [PATCH 09/10] x86/VT-d: Make Intel VT-d IOMMU use IOMM ..., Konrad Rzeszutek Wilk, (Tue Sep 7, 12:07 pm)