mbox series

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

Message ID 20250211020118.3275874-1-maobibo@loongson.cn (mailing list archive)
Headers show
Series LoongArch: KVM: Some tiny code cleanup | expand

Message

bibo mao Feb. 11, 2025, 2:01 a.m. UTC
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

Comments

Huacai Chen Feb. 11, 2025, 2:39 p.m. UTC | #1
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
>