From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>,
xen-devel <xen-devel@lists.xenproject.org>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
Paul Durrant <paul.durrant@citrix.com>
Subject: Re: [PATCH RFC] x86/HVM: meet xentrace's expectations on emulation event data
Date: Wed, 29 Aug 2018 15:22:02 +0100 [thread overview]
Message-ID: <cccd95cf-9102-ff2e-be02-1d6141c20452@citrix.com> (raw)
In-Reply-To: <5B6BF4DB02000078001DC531@prv1-mh.provo.novell.com>
On 09/08/18 09:01, Jan Beulich wrote:
> According to the logic in hvm_mmio_assist_process(), 64 bits of data are
> expected with 64-bit addresses, and 32 bits of data with 32-bit ones. I
> don't think this is very reasonable, but I'm also not going to touch the
> consumer side, the more that it is anyway not very helpful for the code
> here to only ever supply 32 bits of data (despite the field being 64
> bits wide, and having been even in the 32-bit days of Xen).
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
> ---
> RFC: Untested; solely based on the observation of "(no data)" in a trace
> where it was entirely unclear why no data would have been available.
> I just so happened that the guest had more than 4Gb of memory, and
> hence addresses were not representable as 32-bit values.
Unfortunately, I don't think this helps much.
From what I can tell, xentrace_format doesn't understand the TRC_64_FLAG
versions of these events at all, and xenalyze uses:
union {
struct {
unsigned int gpa;
unsigned int data;
} x32;
struct {
unsigned long long gpa;
unsigned int data;
} x64;
} *r = (typeof(r))h->d;
to pull the data back out. AFAICT, this matches what Xen is currently
writing, and is equally wrong.
~Andrew
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2018-08-29 14:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-09 8:01 [PATCH RFC] x86/HVM: meet xentrace's expectations on emulation event data Jan Beulich
2018-08-09 9:09 ` Paul Durrant
2018-08-29 7:10 ` Ping: " Jan Beulich
2018-08-29 14:22 ` Andrew Cooper [this message]
2018-08-29 14:39 ` Jan Beulich
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=cccd95cf-9102-ff2e-be02-1d6141c20452@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=paul.durrant@citrix.com \
--cc=xen-devel@lists.xenproject.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).