Re: [PATCH] KVM: Fix the indentation to match coding style

From: Paolo Bonzini
Date: Mon May 18 2020 - 06:56:00 EST


On 18/05/20 03:31, Haiwei Li wrote:
> From: Haiwei Li <lihaiwei@xxxxxxxxxxx>
>
> There is a bad indentation in next&queue branch. The patch looks like
> fixes nothing though it fixes the indentation.
>
> Before fixing:
>
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ if (!handle_fastpath_set_x2apic_icr_irqoff(vcpu, data)) {
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ kvm_skip_emulated_instruction(vcpu);
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ret = EXIT_FASTPATH_EXIT_HANDLED;
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ }
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ break;
> ÂÂÂÂÂÂÂ case MSR_IA32_TSCDEADLINE:
>
> After fixing:
>
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ if (!handle_fastpath_set_x2apic_icr_irqoff(vcpu, data)) {
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ kvm_skip_emulated_instruction(vcpu);
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ret = EXIT_FASTPATH_EXIT_HANDLED;
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ }
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ break;
> ÂÂÂÂÂÂÂ case MSR_IA32_TSCDEADLINE:
>
>
> Signed-off-by: Haiwei Li <lihaiwei@xxxxxxxxxxx>
> ---
> Âarch/x86/kvm/x86.c | 2 +-
> Â1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
> index 471fccf..446f747 100644
> --- a/arch/x86/kvm/x86.c
> +++ b/arch/x86/kvm/x86.c
> @@ -1631,7 +1631,7 @@ fastpath_t handle_fastpath_set_msr_irqoff(struct
> kvm_vcpu *vcpu)
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ if (!handle_fastpath_set_x2apic_icr_irqoff(vcpu, data)) {
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ kvm_skip_emulated_instruction(vcpu);
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ret = EXIT_FASTPATH_EXIT_HANDLED;
> -ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ }
> +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂ }
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ break;
> ÂÂÂÂÂÂÂ case MSR_IA32_TSCDEADLINE:
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ data = kvm_read_edx_eax(vcpu);
> --
> 1.8.3.1
>

Queued, thanks.

Paolo