[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <81112cec-72fa-dd8c-21c8-b24f51021f43@de.ibm.com>
Date: Tue, 13 Apr 2021 09:35:24 +0200
From: Christian Borntraeger <borntraeger@...ibm.com>
To: Wanpeng Li <kernellwp@...il.com>, linux-kernel@...r.kernel.org,
kvm@...r.kernel.org
Cc: Paolo Bonzini <pbonzini@...hat.com>,
Sean Christopherson <seanjc@...gle.com>,
Vitaly Kuznetsov <vkuznets@...hat.com>,
Wanpeng Li <wanpengli@...cent.com>,
Jim Mattson <jmattson@...gle.com>,
Joerg Roedel <joro@...tes.org>,
Thomas Gleixner <tglx@...utronix.de>,
Michael Tokarev <mjt@....msk.ru>
Subject: Re: [PATCH v2 1/3] context_tracking: Split guest_enter/exit_irqoff
On 13.04.21 09:16, Wanpeng Li wrote:
[...]
> @@ -145,6 +155,13 @@ static __always_inline void guest_exit_irqoff(void)
> }
>
> #else
> +static __always_inline void context_guest_enter_irqoff(void)
> +{
> + instrumentation_begin();
> + rcu_virt_note_context_switch(smp_processor_id());
> + instrumentation_end();
> +}
> +
> static __always_inline void guest_enter_irqoff(void)
> {
> /*
> @@ -155,10 +172,13 @@ static __always_inline void guest_enter_irqoff(void)
> instrumentation_begin();
> vtime_account_kernel(current);
> current->flags |= PF_VCPU;
> - rcu_virt_note_context_switch(smp_processor_id());
> instrumentation_end();
> +
> + context_guest_enter_irqoff();
So we now do instrumentation_begin 2 times?
Powered by blists - more mailing lists