Commit a41c78c1 authored by Aleksandr Bezzubikov's avatar Aleksandr Bezzubikov Committed by Michael S. Tsirkin
Browse files

hw/i386: allow SHPC for Q35 machine



Unmask previously masked SHPC feature in _OSC method.

Signed-off-by: default avatarAleksandr Bezzubikov <zuban32s@gmail.com>
Reviewed-by: default avatarMarcel Apfelbaum <marcel@redhat.com>
Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent e6a74868
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1862,9 +1862,9 @@ static Aml *build_q35_osc_method(void)

    /*
     * Always allow native PME, AER (no dependencies)
     * Never allow SHPC (no SHPC controller in this system)
     * Allow SHPC (PCI bridges can have SHPC controller)
     */
    aml_append(if_ctx, aml_and(a_ctrl, aml_int(0x1D), a_ctrl));
    aml_append(if_ctx, aml_and(a_ctrl, aml_int(0x1F), a_ctrl));

    if_ctx2 = aml_if(aml_lnot(aml_equal(aml_arg(1), aml_int(1))));
    /* Unknown revision */