Re: [PATCH v3] target/i386: Set maximum APIC ID to KVM prior to vCPU creation

2022-10-13 Thread Zeng Guang
PING again ! This QEMU patch is to optimize max APIC ID set for current VM session introduced since linux v6.0. It's also compatible with previous linux version. Thanks. On 9/5/2022 9:27 AM, Zeng Guang wrote: Kindly PING! On 8/25/2022 10:52 AM, Zeng Guang wrote: Specify maximum possible

Re: [PATCH v3] target/i386: Set maximum APIC ID to KVM prior to vCPU creation

2022-09-04 Thread Zeng Guang
Kindly PING! On 8/25/2022 10:52 AM, Zeng Guang wrote: Specify maximum possible APIC ID assigned for current VM session to KVM prior to the creation of vCPUs. By this setting, KVM can set up VM-scoped data structure indexed by the APIC ID, e.g. Posted-Interrupt Descriptor pointer table

[PATCH v3] target/i386: Set maximum APIC ID to KVM prior to vCPU creation

2022-08-24 Thread Zeng Guang
footprint. It can be achieved by calling KVM_ENABLE_CAP for KVM_CAP_MAX_VCPU_ID capability once KVM has enabled it. Ignoring the return error if KVM doesn't support this capability yet. Signed-off-by: Zeng Guang --- hw/i386/x86.c | 4 target/i386/kvm/kvm-stub.c | 5

[QEMU PATCH v2] x86: Set maximum APIC ID to KVM prior to vCPU creation

2022-05-23 Thread Zeng Guang
footprint. It can be achieved by calling KVM_ENABLE_CAP for KVM_CAP_MAX_VCPU_ID capability once KVM has already enabled it. Ignoring the return error if KVM doesn't support this capability yet. Signed-off-by: Zeng Guang --- hw/i386/x86.c | 5 + target/i386/kvm/kvm.c | 5

[QEMU PATCH] x86: Set maximum APIC ID to KVM prior to vCPU creation

2022-05-20 Thread Zeng Guang
for KVM_CAP_MAX_VCPU_ID capability once KVM has already enabled it. Otherwise, simply prompts that KVM doesn't support this capability yet. Signed-off-by: Zeng Guang --- hw/i386/x86.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hw/i386/x86.c b/hw/i386/x86.c index 4cf107baea

Re: [RFC PATCH 6/7] x86: Use new XSAVE ioctls handling

2022-01-11 Thread Zeng Guang
On 1/11/2022 10:30 AM, Tian, Kevin wrote: From: Zeng, Guang Sent: Monday, January 10, 2022 5:47 PM On 1/10/2022 4:40 PM, Tian, Kevin wrote: From: Zhong, Yang Sent: Friday, January 7, 2022 5:32 PM From: Jing Liu Extended feature has large state while current kvm_xsave only allows 4KB. Use

Re: [RFC PATCH 6/7] x86: Use new XSAVE ioctls handling

2022-01-10 Thread Zeng Guang
On 1/11/2022 10:30 AM, Tian, Kevin wrote: From: Zeng, Guang Sent: Monday, January 10, 2022 5:47 PM On 1/10/2022 4:40 PM, Tian, Kevin wrote: From: Zhong, Yang Sent: Friday, January 7, 2022 5:32 PM From: Jing Liu Extended feature has large state while current kvm_xsave only allows 4KB. Use

Re: [RFC PATCH 6/7] x86: Use new XSAVE ioctls handling

2022-01-10 Thread Zeng Guang
-by: Zeng Guang Signed-off-by: Wei Wang Signed-off-by: Yang Zhong --- linux-headers/asm-x86/kvm.h | 14 ++ linux-headers/linux/kvm.h | 2 ++ target/i386/cpu.h | 5 + target/i386/kvm/kvm.c | 16 ++-- target/i386/xsave_helper.c | 35

[PATCH v2] hw/misc/edu: support pci device state migration

2020-07-23 Thread Zeng Guang
Add VMState for edu device to support migration. Signed-off-by: Gao Chao Signed-off-by: Zeng Guang Reviewed-by: Wei Wang --- hw/misc/edu.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/hw/misc/edu.c b/hw/misc/edu.c index ec617e63f3..5f3fecac41 100644

Re: [PATCH] hw/misc/edu: support pci device state migration

2020-07-22 Thread Zeng Guang
On 7/22/2020 4:37 PM, Peter Maydell wrote: On Wed, 22 Jul 2020 at 09:31, Zeng Guang wrote: Currently edu device doesn't support live migration. Part of PCI configuration information would be lost after migration. PCI device state in source VM: Bus 0, device 3, function 0: Class

[PATCH] hw/misc/edu: support pci device state migration

2020-07-22 Thread Zeng Guang
Add VMState for edu device to support migration. Signed-off-by: Gao Chao Signed-off-by: Zeng Guang Reviewed-by: Wei Wang --- hw/misc/edu.c | 12 1 file changed, 12 insertions(+) diff --git a/hw/misc/edu.c b/hw/misc/edu.c index ec617e63f3..3ff2759ee1 100644 --- a/hw/misc/edu.c +++ b/hw