* [PATCH] KVM: ARM: count remote TLB flushes
@ 2021-07-27 10:32 Paolo Bonzini
2021-07-28 19:02 ` Oliver Upton
2021-08-02 13:45 ` Marc Zyngier
0 siblings, 2 replies; 3+ messages in thread
From: Paolo Bonzini @ 2021-07-27 10:32 UTC (permalink / raw)
To: linux-kernel, kvm; +Cc: maz, kvmarm
KVM/ARM has an architecture-specific implementation of
kvm_flush_remote_tlbs; however, unlike the generic one,
it does not count the flushes in kvm->stat.remote_tlb_flush,
so that it inexorably remained stuck to zero.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
arch/arm64/kvm/mmu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/kvm/mmu.c b/arch/arm64/kvm/mmu.c
index c10207fed2f3..6cf16b43bfcc 100644
--- a/arch/arm64/kvm/mmu.c
+++ b/arch/arm64/kvm/mmu.c
@@ -81,6 +81,7 @@ static bool memslot_is_logging(struct kvm_memory_slot *memslot)
void kvm_flush_remote_tlbs(struct kvm *kvm)
{
kvm_call_hyp(__kvm_tlb_flush_vmid, &kvm->arch.mmu);
+ ++kvm->stat.generic.remote_tlb_flush;
}
static bool kvm_is_device_pfn(unsigned long pfn)
--
2.31.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] KVM: ARM: count remote TLB flushes
2021-07-27 10:32 [PATCH] KVM: ARM: count remote TLB flushes Paolo Bonzini
@ 2021-07-28 19:02 ` Oliver Upton
2021-08-02 13:45 ` Marc Zyngier
1 sibling, 0 replies; 3+ messages in thread
From: Oliver Upton @ 2021-07-28 19:02 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: linux-kernel, kvm, maz, kvmarm, Jing Zhang
On Tue, Jul 27, 2021 at 3:33 AM Paolo Bonzini <pbonzini@redhat.com> wrote:
>
> KVM/ARM has an architecture-specific implementation of
> kvm_flush_remote_tlbs; however, unlike the generic one,
> it does not count the flushes in kvm->stat.remote_tlb_flush,
> so that it inexorably remained stuck to zero.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Oliver Upton <oupton@google.com>
> ---
> arch/arm64/kvm/mmu.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/kvm/mmu.c b/arch/arm64/kvm/mmu.c
> index c10207fed2f3..6cf16b43bfcc 100644
> --- a/arch/arm64/kvm/mmu.c
> +++ b/arch/arm64/kvm/mmu.c
> @@ -81,6 +81,7 @@ static bool memslot_is_logging(struct kvm_memory_slot *memslot)
> void kvm_flush_remote_tlbs(struct kvm *kvm)
> {
> kvm_call_hyp(__kvm_tlb_flush_vmid, &kvm->arch.mmu);
> + ++kvm->stat.generic.remote_tlb_flush;
> }
>
> static bool kvm_is_device_pfn(unsigned long pfn)
> --
> 2.31.1
>
> _______________________________________________
> kvmarm mailing list
> kvmarm@lists.cs.columbia.edu
> https://lists.cs.columbia.edu/mailman/listinfo/kvmarm
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] KVM: ARM: count remote TLB flushes
2021-07-27 10:32 [PATCH] KVM: ARM: count remote TLB flushes Paolo Bonzini
2021-07-28 19:02 ` Oliver Upton
@ 2021-08-02 13:45 ` Marc Zyngier
1 sibling, 0 replies; 3+ messages in thread
From: Marc Zyngier @ 2021-08-02 13:45 UTC (permalink / raw)
To: Paolo Bonzini, kvm, linux-kernel; +Cc: kvmarm
On Tue, 27 Jul 2021 12:32:51 +0200, Paolo Bonzini wrote:
> KVM/ARM has an architecture-specific implementation of
> kvm_flush_remote_tlbs; however, unlike the generic one,
> it does not count the flushes in kvm->stat.remote_tlb_flush,
> so that it inexorably remained stuck to zero.
Applied to next, thanks!
[1/1] KVM: ARM: count remote TLB flushes
commit: 38f703663d4c82ead5b51b8860deeef19d6dcb6d
Cheers,
M.
--
Without deviation from the norm, progress is not possible.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-08-02 13:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 10:32 [PATCH] KVM: ARM: count remote TLB flushes Paolo Bonzini
2021-07-28 19:02 ` Oliver Upton
2021-08-02 13:45 ` Marc Zyngier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).