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

2022-01-11 Thread Wang, Wei W
On Wednesday, January 12, 2022 10:51 AM, Zeng, Guang wrote: > To: Tian, Kevin ; Zhong, Yang ; > qemu-devel@nongnu.org > Cc: pbonz...@redhat.com; Christopherson,, Sean ; > jing2@linux.intel.com; Wang, Wei W > Subject: Re: [RFC PATCH 6/7] x86: Use new XSAVE ioctls handling >

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 Tian, Kevin
> 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 new

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

2022-01-10 Thread Zeng Guang
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 new XSAVE ioctls if the xstate size is large than kvm_xsave. shouldn't we always use the new xsave

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

2022-01-10 Thread Tian, Kevin
> 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 new XSAVE ioctls > if the xstate size is large than kvm_xsave. shouldn't we always use the new xsave ioctls as long as CAP_XSAVE2

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

2022-01-07 Thread Yang Zhong
From: Jing Liu Extended feature has large state while current kvm_xsave only allows 4KB. Use new XSAVE ioctls if the xstate size is large than kvm_xsave. Signed-off-by: Jing Liu Signed-off-by: Zeng Guang Signed-off-by: Wei Wang Signed-off-by: Yang Zhong --- linux-headers/asm-x86/kvm.h | 14