All of lore.kernel.org
 help / color / mirror / Atom feed
From: Blue Swirl <blauwirbel@gmail.com>
To: Dhaval Giani <dhaval.giani@gmail.com>
Cc: qemu-devel <qemu-devel@nongnu.org>,
	"Glauber Costa" <glommer@gmail.com>, Lluís <xscript@gmx.net>,
	"Avi Kivity" <avi@redhat.com>,
	"Stefan Hajnoczi" <stefanha@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [PATCH, RFC] trace: implement guest tracepoint passthrough
Date: Sat, 3 Sep 2011 10:55:39 +0000	[thread overview]
Message-ID: <CAAu8pHvoH+D6qzmxe5RFXJv8u43GQdSwWJFevqMSDUZmXquPww@mail.gmail.com> (raw)
In-Reply-To: <CAPhKKr-PHFUGt5FkAbdt4yqcCZUbL8H7pQtRUZ8zo=QmWwbUAQ@mail.gmail.com>

On Sat, Sep 3, 2011 at 9:26 AM, Dhaval Giani <dhaval.giani@gmail.com> wrote:
> On Sat, Sep 3, 2011 at 1:53 AM, Blue Swirl <blauwirbel@gmail.com> wrote:
>> On Wed, Aug 31, 2011 at 6:00 PM, Dhaval Giani <dhaval.giani@gmail.com> wrote:
>>> On Wed, Aug 31, 2011 at 10:58 AM, Blue Swirl <blauwirbel@gmail.com> wrote:
>>>> On Wed, Aug 31, 2011 at 8:38 AM, Avi Kivity <avi@redhat.com> wrote:
>>>>> On 08/26/2011 10:06 PM, Blue Swirl wrote:
>>>>>>
>>>>>> Let guests inject tracepoint data via fw_cfg device.
>>>>>>
>>>>>>
>>>>>
>>>>> At least on x86, fw_cfg is pretty slow, involving multiple exits.  IMO, for
>>>>> kvm, even one exit per tracepoint is too high.  We need to use a shared
>>>>> memory transport with a way to order guest/host events later on (by using a
>>>>> clock).
>>>>
>>>> This could be an easy way, if the guest always had access to an
>>>> accurate clock, but that may not be the case.
>>>>
>>>
>>> From what I understand, kvmclock should be good enoguh for this
>>> purpose. That is what I am using.
>>
>> It's only available for KVM on x86, that is most certainly not enough.
>>
>
> From what I understood it is available on other architectures as well,
> but let us just confirm with glommer.

This line in Makefile.target limits the device to KVM on x86:
obj-i386-$(CONFIG_KVM) += kvmclock.o

Moreover, the code assumes that CPUState structure contains a field
cpuid_kvm_features but that is only available on x86.

Perhaps the device can be made generic but I don't see how it should
work with TCG. Actually I don't understand it at all, I think key
functionality must be inside KVM module.

      reply	other threads:[~2011-09-03 10:56 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-26 19:06 [Qemu-devel] [PATCH, RFC] trace: implement guest tracepoint passthrough Blue Swirl
2011-08-29 12:17 ` Stefan Hajnoczi
2011-08-29 12:51   ` Lluís
2011-08-30 18:58     ` Blue Swirl
2011-08-30 18:43   ` Blue Swirl
2011-08-31  7:24     ` Stefan Hajnoczi
2011-08-31  8:38 ` Avi Kivity
2011-08-31  9:08   ` Stefan Hajnoczi
2011-08-31  9:11     ` Avi Kivity
2011-08-31 13:38       ` Stefan Hajnoczi
2011-08-31 18:01         ` Dhaval Giani
2011-08-31 10:54     ` Jan Kiszka
2011-08-31 17:58   ` Blue Swirl
2011-08-31 18:00     ` Dhaval Giani
2011-09-03  8:53       ` Blue Swirl
2011-09-03  9:26         ` Dhaval Giani
2011-09-03 10:55           ` Blue Swirl [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=CAAu8pHvoH+D6qzmxe5RFXJv8u43GQdSwWJFevqMSDUZmXquPww@mail.gmail.com \
    --to=blauwirbel@gmail.com \
    --cc=avi@redhat.com \
    --cc=dhaval.giani@gmail.com \
    --cc=glommer@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@linux.vnet.ibm.com \
    --cc=xscript@gmx.net \
    /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.