[PATCH v2 0/3] LoongArch: KVM: Some tiny code cleanup

Bibo Mao posted 3 patches 12 months ago
arch/loongarch/kvm/main.c   | 4 ++--
arch/loongarch/kvm/switch.S | 2 +-
arch/loongarch/kvm/vcpu.c   | 3 ---
3 files changed, 3 insertions(+), 6 deletions(-)
[PATCH v2 0/3] LoongArch: KVM: Some tiny code cleanup
Posted by Bibo Mao 12 months ago
There is some tiny code cleanup with VM context switch or vCPU context
switch path, and it fixes typo issue about macro usage GCFG register.

---
  v1 .. v2:
    1. Remove comments about LOONGARCH_CSR_GCFG definition in header file.
    2. Add notes why PRMD need be kernel mode when switch to VM.
---
Bibo Mao (3):
  LoongArch: KVM: Fix typo issue about GCFG feature detection
  LoongArch: KVM: Remove duplicated cache attribute setting
  LoongArch: KVM: Set host with kernel mode when switch to VM mode

 arch/loongarch/kvm/main.c   | 4 ++--
 arch/loongarch/kvm/switch.S | 2 +-
 arch/loongarch/kvm/vcpu.c   | 3 ---
 3 files changed, 3 insertions(+), 6 deletions(-)


base-commit: a64dcfb451e254085a7daee5fe51bf22959d52d3
-- 
2.39.3
Re: [PATCH v2 0/3] LoongArch: KVM: Some tiny code cleanup
Posted by Huacai Chen 12 months ago
Series applied, thanks.

Huacai

On Tue, Feb 11, 2025 at 10:01 AM Bibo Mao <maobibo@loongson.cn> wrote:
>
> There is some tiny code cleanup with VM context switch or vCPU context
> switch path, and it fixes typo issue about macro usage GCFG register.
>
> ---
>   v1 .. v2:
>     1. Remove comments about LOONGARCH_CSR_GCFG definition in header file.
>     2. Add notes why PRMD need be kernel mode when switch to VM.
> ---
> Bibo Mao (3):
>   LoongArch: KVM: Fix typo issue about GCFG feature detection
>   LoongArch: KVM: Remove duplicated cache attribute setting
>   LoongArch: KVM: Set host with kernel mode when switch to VM mode
>
>  arch/loongarch/kvm/main.c   | 4 ++--
>  arch/loongarch/kvm/switch.S | 2 +-
>  arch/loongarch/kvm/vcpu.c   | 3 ---
>  3 files changed, 3 insertions(+), 6 deletions(-)
>
>
> base-commit: a64dcfb451e254085a7daee5fe51bf22959d52d3
> --
> 2.39.3
>