[v2 1/1] hw/i386/acpi-build: add OSHP method support for SHPC driver load

2024-06-24 Thread Shiyuan Gao via
hotplug (\_SB_.PCI0) [1.707054] shpchp :00:03.0: HPC vendor_id 1b36 device_id 1 ss_vid 0 ss_did 0 Signed-off-by: Shiyuan Gao --- v1 -> v2: * add quote PCI firmware spec 3.0 * explain why an empty method is enough --- hw/i386/acpi-build.c | 19 +++ 1 file changed, 19 inserti

[PATCH 1/1] hw/i386/acpi-build: add OSHP method support for SHPC driver load

2024-06-24 Thread Shiyuan Gao via
igned-off-by: Shiyuan Gao --- hw/i386/acpi-build.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index f4e366f64f..79622e6939 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -1412,6 +1412,18 @@ static void build_acpi0017(A

Re: [PATCH] kvm: limit the maximum CPUID.0xA.edx[0..4] to 3

2024-01-10 Thread Shiyuan Gao via
Anyone has suggestion? When the host kernel before this commit 2e8cd7a3b828 ("kvm: x86: limit the maximum number of vPMU fixed counters to 3") on icelake microarchitecture and newer, execute cpuid in the Guest: Architecture Performance Monitoring Features (0xa/edx): number of fixed

[PATCH] util/qemu-config: Remove unnecessary traversal

2023-11-13 Thread Shiyuan Gao via
From: Gao Shiyuan No remove QemuOptsList from *_config_groups, so no need to traverse from the beginning every time. No functional changes. Signed-off-by: Gao Shiyuan --- include/qemu/config-file.h | 3 +++ util/qemu-config.c | 18 -- 2 files changed, 11

[PATCH] vnc,ps2: fix the PS/2 mouse work badly when connect VNC

2023-07-16 Thread Shiyuan Gao
ntrol Panel -> Mouse). Signed-off-by: Shiyuan Gao --- hw/input/ps2.c | 2 +- ui/vnc.c | 5 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hw/input/ps2.c b/hw/input/ps2.c index 45af76a837..e1f44bd298 100644 --- a/hw/input/ps2.c +++ b/hw/input/ps2.c @@

[PATCH] kvm: limit the maximum CPUID.0xA.edx[0..4] to 3

2023-06-02 Thread Shiyuan Gao
This also break the live-migration between source host kernel before commit 2e8cd7a3b828 and dest host kernel after the commit on icelake microarchitecture. Signed-off-by: Shiyuan Gao --- target/i386/kvm/kvm.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/t