Skip to contentSkip to conversation

iommu: add rmrr Xen command line option for misc rmrrs

PATCH Elena Ufimtseva 1 participant 1 message Mar 13, 2015

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines · ----- [email protected] wrote:
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 12.03.15 at 21:52, <[email protected]> wrote:
Quoted 7 lines · Andrew Cooper
Quoted 6 lines · On 09/03/15 14:42, [email protected] wrote:
xen/drivers/passthrough/iommu.c +0 -0
@@ -55,6 +55,9 @@ bool_t __read_mostly iommu_hap_pt_share = 1;
 bool_t __read_mostly iommu_debug;
 bool_t __read_mostly amd_iommu_perdev_intremap = 1;
 
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

xen/drivers/passthrough/iommu.c bool_t __read_mostly iommu_hap_pt_share = 1; · line 59

Quoted 2 lines
xen/drivers/passthrough/iommu.c +2 -0
+static char __initdata misc_rmrr[100];
+string_param("rmrr", misc_rmrr);

This wants to be a custom_param, not a string_param.

Andrew, can you please explain why its preferred?

Consistency.

Makes sense.

Quoted 8 lines
Quoted 2 lines

Also, I wont be able to use xen dynamic allocator at this early

stage,

Quoted 1 line

correct?

Yes. But by having a static limit on the string size you had already limited the number of entries, so having a static array instead won't make things worse.

Ok, will do it.

Quoted 12 lines
Quoted 2 lines
Quoted 2 lines

Furthermore, I think it would be better to match the existing

ivrs_hpet[

Quoted 1 line
Quoted 1 line

and ivrs_ioapic[ parameters as closely as possible, seeing as it is

the

Quoted 4 lines
Quoted 1 line

same kind of overrides being added to ACPI tables.

Thanks Andrew, looks like preferred way looks like this:
rmrr=start<:end>[sbdf1, sbdf2, ...], ...

With the slight adjustment that

Quoted 7 lines
	rmrr=start:<end:>sbdf1[,sbdf2[, ...]][; ...]

or even (considering that sbdf necessarily include : too)

	rmrr=start<:end>=sbdf1[,sbdf2[, ...]][; ...]

will likely make it easier to parse unambiguously.

Ok, I will just need a bit of change for this.

Quoted 2 lines

Jan