By default there's already no use for this when we run in shim mode.
Plus there may also be a need to suppress the probing in case of issues
with it. Before introducing further port alias probing, introduce a
command line option allowing to bypass it, default it to on when in shim
mode, and gate RTC/CMOS port alias probing on it.
Requested-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Jason Andryuk <jason.andryuk@amd.com>
This is a mask of C-states which are to be used preferably. This option is
applicable only on hardware were certain C-states are exclusive of one another.
+### probe-port-aliases (x86)
+> `= <boolean>`
+
+> Default: `true` outside of shim mode, `false` in shim mode
+
+Certain devices accessible by I/O ports may be accessible also through "alias"
+ports (originally a result of incomplete address decoding). When such devices
+are solely under Xen's control, Xen disallows even Dom0 access to the "primary"
+ports. When alias probing is active and aliases are detected, "alias" ports
+would then be treated similar to the "primary" ones.
+
### psr (Intel)
> `= List of ( cmt:<boolean> | rmid_max:<integer> | cat:<boolean> | cos_max:<integer> | cdp:<boolean> )`
#endif
extern int8_t opt_smt;
+extern int8_t opt_probe_port_aliases;
#ifdef CONFIG_SHADOW_PAGING
extern bool opt_dom0_shadow;
boolean_param("invpcid", opt_invpcid);
bool __read_mostly use_invpcid;
+int8_t __initdata opt_probe_port_aliases = -1;
+boolean_param("probe-port-aliases", opt_probe_port_aliases);
+
/* Only used in asm code and within this source file */
unsigned long asmlinkage __read_mostly cr4_pv32_mask;
/* Low mappings were only needed for some BIOS table parsing. */
zap_low_mappings();
+ if ( opt_probe_port_aliases < 0 )
+ opt_probe_port_aliases = !pv_shim;
+
init_apic_mappings();
normalise_cpu_order();
{
unsigned int offs;
- if ( acpi_gbl_FADT.boot_flags & ACPI_FADT_NO_CMOS_RTC )
+ if ( (acpi_gbl_FADT.boot_flags & ACPI_FADT_NO_CMOS_RTC) ||
+ !opt_probe_port_aliases )
return 0;
for ( offs = 2; offs < 8; offs <<= 1 )