linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sean Christopherson <seanjc@google.com>
To: Marc Zyngier <maz@kernel.org>
Cc: Tianyi Liu <i.pear@outlook.com>,
	pbonzini@redhat.com, peterz@infradead.org,  mingo@redhat.com,
	acme@kernel.org, linux-arm-kernel@lists.infradead.org,
	 kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org,
	 linux-perf-users@vger.kernel.org, kvm@vger.kernel.org,
	x86@kernel.org,  mark.rutland@arm.com, mlevitsk@redhat.com,
	alexander.shishkin@linux.intel.com,  jolsa@kernel.org,
	namhyung@kernel.org, irogers@google.com,
	 adrian.hunter@intel.com
Subject: Re: [PATCH v3 1/5] KVM: Add arch specific interfaces for sampling guest callchains
Date: Mon, 11 Dec 2023 14:57:00 -0800	[thread overview]
Message-ID: <ZXeTvCLURmwzpDkP@google.com> (raw)
In-Reply-To: <865y16b6cf.wl-maz@kernel.org>

On Sun, Dec 10, 2023, Marc Zyngier wrote:
> On Sun, 10 Dec 2023 08:12:18 +0000, Tianyi Liu <i.pear@outlook.com> wrote:
> > +bool kvm_arch_vcpu_read_virt(struct kvm_vcpu *vcpu, gva_t addr, void *dest, unsigned int length)
> > +{
> > +	/* TODO: implement */
> > +	return false;
> > +}
> 
> I don't do it very often, but the only thing I can say about this is
> *NAK*.
> 
> You have decided to ignore the previous review comments, which is your
> prerogative. However, I absolutely refuse to add half baked and
> *dangerous* stuff to the arm64's version of KVM.
> 
> If you can convince the x86 folks that they absolutely want this, fine
> by me. But this need to be a buy-in interface, not something that is
> required for each and every architecture to have stubs, wrongly
> suggesting that extra work is needed.
> 
> For arm64, the way to go is to have this in userspace. Which is both
> easy to implement and safe. And until we have such a userspace
> implementation as a baseline, I will not consider a kernel
> version.

I too want more justification of why this needs to be handled in the kernel[*].
The usefulness of this is dubious for many modern setups/workloads, and outright
undesirable for some, e.g. many (most?) cloud providers want to make it all but
impossible to access customer data.

[*] https://lore.kernel.org/all/ZSlNsn-f1j2bB8pW@FVFF77S0Q05N.cambridge.arm.com

  reply	other threads:[~2023-12-11 22:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-10  8:07 [PATCH v3 0/5] perf: KVM: Enable callchains for guests Tianyi Liu
2023-12-10  8:12 ` [PATCH v3 1/5] KVM: Add arch specific interfaces for sampling guest callchains Tianyi Liu
2023-12-10 12:16   ` Marc Zyngier
2023-12-11 22:57     ` Sean Christopherson [this message]
2023-12-10  8:14 ` [PATCH v3 2/5] perf kvm: Introduce guest interfaces for sampling callchains Tianyi Liu
2023-12-10  8:15 ` [PATCH v3 3/5] KVM: implement new perf callback interfaces Tianyi Liu
2023-12-10  8:15 ` [PATCH v3 4/5] perf kvm: Support sampling guest callchains Tianyi Liu
2023-12-12 15:39   ` Sean Christopherson
2023-12-10  8:16 ` [PATCH v3 5/5] perf tools: Support PERF_CONTEXT_GUEST_* flags Tianyi Liu

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=ZXeTvCLURmwzpDkP@google.com \
    --to=seanjc@google.com \
    --cc=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=i.pear@outlook.com \
    --cc=irogers@google.com \
    --cc=jolsa@kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=kvmarm@lists.linux.dev \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=maz@kernel.org \
    --cc=mingo@redhat.com \
    --cc=mlevitsk@redhat.com \
    --cc=namhyung@kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=peterz@infradead.org \
    --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 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).