All of lore.kernel.org
 help / color / mirror / Atom feed
From: Razvan Cojocaru <rzvncj@gmail.com>
To: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Libxc code to get MTRR memory type for physical address pa
Date: Thu, 13 Dec 2012 17:13:33 +0200	[thread overview]
Message-ID: <50C9F09D.9080602@gmail.com> (raw)

Hello,

what would be the libxc-based equivalent of get_mtrr_type(struct 
mtrr_state *m, paddr_t pa) (from xen/arch/x86/hvm/mtrr.c)?

I've searched the source code and found this:

struct hvm_hw_mtrr {
#define MTRR_VCNT 8
#define NUM_FIXED_MSR 11
     uint64_t msr_pat_cr;
     /* mtrr physbase & physmask msr pair*/
     uint64_t msr_mtrr_var[MTRR_VCNT*2];
     uint64_t msr_mtrr_fixed[NUM_FIXED_MSR];
     uint64_t msr_mtrr_cap;
     uint64_t msr_mtrr_def_type;
};

in xen/include/public/arch-x86/hvm/save.h. I can retrieve that using
xc_domain_hvm_getcontext_partial(), but what would the the best way to 
get the uint8_t result, for a given 'pa', that get_mtrr_type() returns?

Thanks,
Razvan Cojocaru

             reply	other threads:[~2012-12-13 15:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-13 15:13 Razvan Cojocaru [this message]
2012-12-13 17:21 ` Libxc code to get MTRR memory type for physical address pa Tim Deegan
2012-12-13 17:32   ` Razvan Cojocaru

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=50C9F09D.9080602@gmail.com \
    --to=rzvncj@gmail.com \
    --cc=xen-devel@lists.xen.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 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.