All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Scott Wood <scottwood@freescale.com>
Cc: Bhushan Bharat-R65777 <R65777@freescale.com>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"bharatb.yadav@gmail.com" <bharatb.yadav@gmail.com>
Subject: Re: [Proposal] QEMU-KVM Interface for granting Performance Monitor to guests
Date: Tue, 12 Apr 2011 19:47:32 +0300	[thread overview]
Message-ID: <4DA48224.7040509@redhat.com> (raw)
In-Reply-To: <20110412114538.46e3455d@schlenkerla.am.freescale.net>

On 04/12/2011 07:45 PM, Scott Wood wrote:
> On Tue, 12 Apr 2011 16:05:29 +0000
> Bhushan Bharat-R65777<R65777@freescale.com>  wrote:
>
> >
> >
> >  >  -----Original Message-----
> >  >  From: Avi Kivity [mailto:avi@redhat.com]
> >  >  Sent: Tuesday, April 12, 2011 8:09 PM
> >  >  To: Bhushan Bharat-R65777
> >  >  Cc: kvm@vger.kernel.org; bharatb.yadav@gmail.com
> >  >  Subject: Re: [Proposal] QEMU-KVM Interface for granting Performance
> >  >  Monitor to guests
> >  >
> >  >  On 04/12/2011 10:29 AM, Bhushan Bharat-R65777 wrote:
> >  >  >  Hi All,
> >  >  >
> >  >  >  The proposal is to about defining the qemu-kvm interface for reserving
> >  >  the performance monitor for guest(guests) in Embedded Power Architecture.
> >  >  The plan is to reserve the Performance Monitor for guest/s on guest boot-
> >  >  up and will be released only on guest reset/exit. If a Performance
> >  >  Monitor reserved by host then it can't be reserved for guest and vice-
> >  >  versa. So when Performance monitor is reserved by host then performance
> >  >  monitor can't be used by guests and if reserved by guest then it should
> >  >  not be used by host.
> >  >
> >  >  In general we greatly prefer sharing vs. reservation (there are
> >  >  exceptions, for example PCI device assignment).
> >  >
> >  >  Is there a compelling reason to assign the performance monitor to a
> >  >  single guest?
> >
> >  No, Guest can share with other guests but not with host.
>
> Note that the reservation system is already in use in the host kernel,
> between perf event and oprofile (and I think between users of oprofile).
>
> Maybe something could be done with KVM acting as a perf event client.
>

That is the plan for x86 - using perf events to provide a virtual PMU to 
the guest.

-- 
error compiling committee.c: too many arguments to function


      reply	other threads:[~2011-04-12 16:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-12  7:29 [Proposal] QEMU-KVM Interface for granting Performance Monitor to guests Bhushan Bharat-R65777
2011-04-12 14:39 ` Avi Kivity
2011-04-12 16:05   ` Bhushan Bharat-R65777
2011-04-12 16:45     ` Scott Wood
2011-04-12 16:47       ` Avi Kivity [this message]

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=4DA48224.7040509@redhat.com \
    --to=avi@redhat.com \
    --cc=R65777@freescale.com \
    --cc=bharatb.yadav@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=scottwood@freescale.com \
    /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.