On 10/15/15 00:25, Laszlo Ersek wrote:

> Test environment and results:
> 
> Host kernel:
> - latest RHEL-7 development kernel (3.10.0-323.el7), with Paolo's
>   following patches backported by yours truly:
>   - KVM: x86: clean up kvm_arch_vcpu_runnable
>   - KVM: x86: fix SMI to halted VCPU
> 
> QEMU:
> - current upstream (c49d3411faae), with Paolo's patch applied:
>   - target-i386: allow any alignment for SMBASE
> 
> Below, the meaning of "bitness=32" is:
> * qemu-system-i386
> * -cpu coreduo,-nx
> 
> Whereas "bitness=64" means:
> * qemu-system-x86_64
> * no special -cpu flag
> 
> For variable access verification, "efibootmgr" is invoked (without
> options) at the guest OS (Fedlet 20141209) root prompt.
> 
>   bitness  accel  VCPUs  result
>   -------  -----  -----  -----------------------------------------------
>   32       KVM    1      Fedlet 20141209 boots, S3 works, variables work
> 
>   32       KVM    2      stuck in SMBASE relocation, APIC IDs look valid
> 
>   32       TCG    1      Fedlet 20141209 boots, S3 works, variables work
> 
>   32       TCG    2      Fedlet 20141209 boots, variables (efibootmgr)
>                          are broken -- nothing is printed
> 
>   64       KVM    >=1    "KVM: entry failed, hardware error 0x80000021"
>                          while guest in SMBASE relocation

Tracing KVM shows the following:

 qemu-system-x86-3236  [001] 10586.857752: kvm_enter_smm:        vcpu 1: 
entering SMM, smbase 0x30000
...
 qemu-system-x86-3236  [001] 10586.857863: kvm_enter_smm:        vcpu 1: 
leaving SMM, smbase 0x0
 qemu-system-x86-3236  [001] 10586.857865: kvm_entry:            vcpu 1
 qemu-system-x86-3236  [001] 10586.857866: kvm_exit:             reason UNKNOWN 
rip 0x0 info 0 80000306
 qemu-system-x86-3236  [001] 10586.857909: kvm_userspace_exit:   reason 
KVM_EXIT_FAIL_ENTRY (9)


> 
>   64       TCG    1      F21 XFCE LiveCD boots, variable access OK, S3
>                          resume triggers InternalX86EnablePaging64()
>                          ASSERT() in
>                          "MdePkg/Library/BaseLib/X64/Non-existing.c".
>                          Looks like a bug in S3Resume2Pei?
> 
>   64       TCG    2      F21 XFCE LiveCD boots, variable access
>                          (efibootmgr) is broken -- reports EINVAL


_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to