Re: [PATCH v2 06/29] LoongArch: KVM: Implement vcpu create and destroy interface
From: Paolo Bonzini
Date: Mon Feb 20 2023 - 12:54:15 EST
On 2/20/23 07:57, Tianrui Zhao wrote:
+ vcpu->arch.guest_eentry = (unsigned long)kvm_context->kvm_eentry;
+ vcpu->arch.vcpu_run = kvm_context->kvm_enter_guest;
+ vcpu->arch.handle_exit = _kvm_handle_exit;
Here as well, whatever is constant must not be stored in struct
kvm_arch_vcpu.
Paolo