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

hw/misc: applesmc: use host osk as default on macs #1

Open
wants to merge 1 commit into
base: utm-edition-v8.0.0
Choose a base branch
from

Commits on Oct 3, 2021

  1. hw/misc: applesmc: use host osk as default on macs

    When running on a Mac, QEMU is able to get the host OSK and use it as
    the default value for the AppleSMC device. The OSK query operation
    doesn't require administrator privileges and can be executed by any user
    on the system. This patch is based on open-source code from Apple, just
    like the implementation from VirtualBox.
    
    Apple:
    https://opensource.apple.com/source/IOKitUser/IOKitUser-647.6.13/pwr_mgt.subproj/IOPMLibPrivate.c
    https://opensource.apple.com/source/PowerManagement/PowerManagement-637.60.1/pmconfigd/PrivateLib.c
    
    VirtualBox:
    https://www.virtualbox.org/browser/vbox/trunk/src/VBox/Devices/EFI/DevSmc.cpp#L516
    
    Signed-off-by: Pedro Tôrres <[email protected]>
    t0rr3sp3dr0 committed Oct 3, 2021
    Configuration menu
    Copy the full SHA
    1fa4696 View commit details
    Browse the repository at this point in the history