mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-26 15:31:35 +00:00
dm: pm: mask the higher bits of parameter of smi_cmd handler
Windows will set 0x262a0 for smi cmd pio, need to mask the higher bits due to smi command is 8 bits register. Otherwise, it cause the ACPI_ENABLE case can't be matched, and windows expecting the SCI_EN of PM1_CONTROL be set after switch to ACPI mode. Finally, cause windows trigger panic. Tracked-On: #2962 Signed-off-by: Yu Wang <yu1.wang@intel.com> Acked-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
parent
15966f94b5
commit
b838e9b720
@ -457,7 +457,7 @@ smi_cmd_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes,
|
||||
return -1;
|
||||
|
||||
pthread_mutex_lock(&pm_lock);
|
||||
switch (*eax) {
|
||||
switch (*eax & 0xFF) {
|
||||
case ACPI_ENABLE:
|
||||
pm1_control |= VIRTUAL_PM1A_SCI_EN;
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user