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

From: Tianrui Zhao
Date: Tue Feb 14 2023 - 04:05:21 EST




在 2023年02月14日 14:40, Greg Kroah-Hartman 写道:
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 for your advice, I will fix my patch and split it into smaller pieces.

Thanks,
Tianrui Zhao

thanks,

greg k-h