From: Sean Christopherson <seanjc@google.com>
To: David Woodhouse <dwmw2@infradead.org>
Cc: Metin Kaya <metikaya@amazon.co.uk>,
kvm@vger.kernel.org, pbonzini@redhat.com, x86@kernel.org,
bp@alien8.de, paul@xen.org, tglx@linutronix.de, mingo@redhat.com,
dave.hansen@linux.intel.com, joao.m.martins@oracle.com
Subject: Re: [PATCH v3] KVM: x86/xen: Implement hvm_op/HVMOP_flush_tlbs hypercall
Date: Wed, 26 Jul 2023 13:07:25 -0700 [thread overview]
Message-ID: <ZMF8/SUw5ebkDhde@google.com> (raw)
In-Reply-To: <9a58e731421edad45dff31e681b83f90c5e9775e.camel@infradead.org>
On Tue, Jul 25, 2023, David Woodhouse wrote:
> On Fri, 2023-05-26 at 13:32 -0700, Sean Christopherson wrote:
> > : Aha! And QEMU appears to have Xen emulation support. That means KVM-Unit-Tests
> > : is an option. Specifically, extend the "access" test to use this hypercall instead
> > : of INVLPG. That'll verify that the flush is actually being performed as expteced.
>
> That works. Metin has a better version that actually sets up the
> hypercall page properly and uses it, but that one bails out when Xen
> support isn't present, and doesn't show the failure mode quite so
> clearly. This is the simple version:
IIUC, y'all have already written both tests, so why not post both? I certainly
won't object to more tests if they provide different coverage.
> > Let me be more explicit this time: I am not applying this without a test. I don't
> > care how trivial a patch may seem, I'm done taking patches without test coverage
> > unless there's a *really* good reason for me to do so.
>
> Understood.
>
> So, we know it *works*, but the above is a one-off and not a
> *regression* test.
>
> It would definitely be nice to have regression tests that cover
> absolutely everything, but adding Xen guest support to the generic KVM-
> Unit-Tests might be considered overkill, because this *particular*
> thing is fairly unlikely to regress? It really is just calling
> kvm_flush_remote_tlbs(), and if that goes wrong we're probably likely
> to notice it anyway.
>
> What do you think?
I'm a-ok with just having basic test coverage. We don't have anywhere near 100%
(or even 10%...) coverage of KVM's TLB management, so it would be ridiculous to
require that for Xen PV.
I'd definitely love to change that, and raise the bar for test coverage in general,
but that'll take time (and effort).
next prev parent reply other threads:[~2023-07-26 20:07 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230417122206.34647-1-metikaya@amazon.co.uk>
2023-04-17 12:22 ` [PATCH v2] KVM: x86/xen: Implement hvm_op/HVMOP_flush_tlbs hypercall Metin Kaya
2023-04-17 16:31 ` Sean Christopherson
2023-04-18 9:14 ` [EXTERNAL][PATCH " David Woodhouse
2023-04-18 10:13 ` [PATCH v3] " Metin Kaya
2023-04-18 10:48 ` Paul Durrant
2023-04-18 11:04 ` Kaya, Metin
2023-04-18 11:13 ` Paul Durrant
2023-04-18 11:05 ` [EXTERNAL][PATCH " David Woodhouse
2023-05-26 20:32 ` [PATCH " Sean Christopherson
2023-07-25 12:56 ` David Woodhouse
2023-07-26 20:07 ` Sean Christopherson [this message]
2023-07-27 12:04 ` David Woodhouse
2023-07-28 7:31 ` Kaya, Metin
2023-08-04 0:22 ` Sean Christopherson
2023-04-18 14:44 ` [EXTERNAL][PATCH v2] " Sean Christopherson
2023-04-18 15:47 ` David Woodhouse
2023-04-18 16:08 ` David Woodhouse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZMF8/SUw5ebkDhde@google.com \
--to=seanjc@google.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=dwmw2@infradead.org \
--cc=joao.m.martins@oracle.com \
--cc=kvm@vger.kernel.org \
--cc=metikaya@amazon.co.uk \
--cc=mingo@redhat.com \
--cc=paul@xen.org \
--cc=pbonzini@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.