Re: [RFC 09/33] KVM: x86: hyper-v: Introduce per-VTL vcpu helpers

2023-11-08 Thread Nicolas Saenz Julienne
On Wed Nov 8, 2023 at 12:21 PM UTC, Alexander Graf wrote: > > On 08.11.23 12:17, Nicolas Saenz Julienne wrote: > > Introduce two helper functions. The first one queries a vCPU's VTL > > level, the second one, given a struct kvm_vcpu and VTL pair, returns the > > corresponding 'sibling' struct kvm_v

Re: [RFC 09/33] KVM: x86: hyper-v: Introduce per-VTL vcpu helpers

2023-11-08 Thread Alexander Graf
On 08.11.23 12:17, Nicolas Saenz Julienne wrote: Introduce two helper functions. The first one queries a vCPU's VTL level, the second one, given a struct kvm_vcpu and VTL pair, returns the corresponding 'sibling' struct kvm_vcpu at the right VTL. We keep track of each VTL's state by having a di

[RFC 09/33] KVM: x86: hyper-v: Introduce per-VTL vcpu helpers

2023-11-08 Thread Nicolas Saenz Julienne
Introduce two helper functions. The first one queries a vCPU's VTL level, the second one, given a struct kvm_vcpu and VTL pair, returns the corresponding 'sibling' struct kvm_vcpu at the right VTL. We keep track of each VTL's state by having a distinct struct kvm_vpcu for each level. VTL-vCPUs tha