Re: [PATCH v1 03/24] LoongArch: KVM: Implement vcpu create,run,destroy operations.

From: Greg Kroah-Hartman
Date: Tue Feb 14 2023 - 01:40:16 EST


On Tue, Feb 14, 2023 at 10:56:27AM +0800, Tianrui Zhao wrote:
> Implement loongarch vcpu related operations:
> 1. Implement vcpu create interface, saving some info into vcpu arch
> structure such as vcpu exception entrance, vcpu enter guest pointer,
> etc. Init vcpu timer and set address translation mode when vcpu create.
> 2. Implement vcpu run interface, handling mmio, iocsr reading fault
> and deliver interrupt, lose fpu before vcpu enter guest.
> 3. Implement vcpu handle exit interface, getting the exit code by ESTAT
> register and using kvm exception vector to handle it.

Again, when you have to list different things in a patch, that is a huge
hint that it needs to be split up into smaller pieces.

thanks,

greg k-h