Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hv: fix using cpuid does not clear the upper 32-bit registers. #8610

Merged
merged 1 commit into from
Jun 19, 2024

Commits on May 29, 2024

  1. hv: fix using cpuid does not clear the upper 32-bit registers.

    In HV, cpuid uses the lower 32 bits of rax\rbx\rcx\rdx registers to pass parameters,
    But the software does not clear the upper 32-bit registers,  if the guest
    uses 64-bit variables to pass parameters to cpuid,guest will use rax\rbx\rcx\rdx,
    not eax\ebx\ecx\edx, the previous value of the high 32 registers will affect the guest.
    
    Tracked-On: projectacrn#8605
    Reviewed-by: Junjie Mao <[email protected]>
    Signed-off-by: andi6 <[email protected]>
    476997779 committed May 29, 2024
    Configuration menu
    Copy the full SHA
    2aace19 View commit details
    Browse the repository at this point in the history