From: "David S. Ahern" <daahern@cisco.com>
To: "Liu, Eric E" <eric.e.liu@intel.com>
Cc: kvm-devel <kvm-devel@lists.sourceforge.net>
Subject: Re: kvm-trace help
Date: Fri, 18 Apr 2008 21:53:21 -0600 [thread overview]
Message-ID: <48096CB1.6070705@cisco.com> (raw)
In-Reply-To: <9D7649D18729DE4BB2BD7B494F7FEDC2012C324C@pdsmsx415.ccr.corp.intel.com>
inline.
Liu, Eric E wrote:
> David S. Ahern wrote:
>> I am trying to add a trace marker and the data is coming out all 0's.
>> e.g.,
>>
>> 0 (+ 0) PTE_WRITE vcpu = 0x00000001 pid = 0x0000240d [
>> gpa = 0x00000000 00000000 gpte = 0x00000000 00000000 ]
>>
>> Patch is attached. I know the data is non-zero as I added an if check
>> before calling the trace to only do the trace if the data is
>> non-zero. Anyone have suggestions on what I am missing?
>>
>> thanks,
>>
>> david
> Hi, david
> I read your patch and find this:
> +#define KVM_TRC_PTE_WRITE (KVM_TRC_HANDLER +
> 0x15)
> +#define KVM_TRC_PTE_FLOODED (KVM_TRC_HANDLER +
> 0x16)
> but in your formats file
> +0x00020015 %(tsc)d (+%(reltsc)8d) PTE_FLOODED vcpu
> = 0x%(vcpu)08x pid = 0x%(pid)08x
> +0x00020016 %(tsc)d (+%(reltsc)8d) PTE_WRITE vcpu
> = 0x%(vcpu)08x pid = 0x%(pid)08x [ gpa = 0x%(2)08x %(1)08x gpte =
> 0x%(4)08x %(3)08x ]
> You mistake the value, right?
>
Which value? Do you mean the 0x00020015 and0x00020016?
kvm.h shows KVM_TRC_APIC_ACCESS as KVM_TRC_HANDLER + 0x14. I added the PTE_WRITE
and PTE_FLOODED after that in kvm.h with the values 0x15 and 0x16. Then in the
formats file it shows APIC_ACCESS as 0x00020014, and I added the new PTE entries
after that as 20015 and 20016. The kvmtrace_format tool does show those lines in
its output which makes me believe these values are ok.
What has me puzzled is the 0 values for gpa and gpte. I believe they are not 0
because I added "if (gpa || gpte) before the KVMTRACE_4D(PTE_WRITE, ...) line
and the lines still show up in the trace output.
david
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
next prev parent reply other threads:[~2008-04-19 3:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-18 22:40 kvm-trace help David S. Ahern
2008-04-19 2:12 ` Liu, Eric E
2008-04-19 3:53 ` David S. Ahern [this message]
2008-04-19 4:04 ` Liu, Eric E
2008-04-19 20:25 ` David S. Ahern
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=48096CB1.6070705@cisco.com \
--to=daahern@cisco.com \
--cc=eric.e.liu@intel.com \
--cc=kvm-devel@lists.sourceforge.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.