From: Mukesh Rathor <mukesh.rathor@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "Xen-devel@lists.xensource.com" <Xen-devel@lists.xensource.com>
Subject: Re: PVH: libxl expertise...
Date: Tue, 13 Nov 2012 17:21:38 -0800 [thread overview]
Message-ID: <20121113172138.1d3274d9@mantra.us.oracle.com> (raw)
In-Reply-To: <1352800853.7491.22.camel@zakaz.uk.xensource.com>
On Tue, 13 Nov 2012 10:00:53 +0000
Ian Campbell <Ian.Campbell@citrix.com> wrote:
> On Tue, 2012-11-13 at 03:09 +0000, Mukesh Rathor wrote:
> > Hi,
> >
> > I am wondering if there's libxl expert who can help me make some PVH
> > related changes to libxl, pref in the US time zone. I could consult
> > on irc or the phone.
>
> I think most of the libxl experts are in European time zones. Probably
> the best bet is to just ask your questions either here or on IRC.
For PVH, xc_dom_feature_translated is not returning true, looks like
its not finding XENFEAT_auto_translated_physmap set in the elf???
I've modified the arch/x86/xen/xen-head.S file to include the PVH:
ELFNOTE(Xen, XEN_ELFNOTE_FEATURES, .asciz "!writable_page_tables|pae_pgdir_above_4gb"FEATURES_PVH)
where
#define FEATURES_PVH "|writable_descriptor_tables" \
"|auto_translated_physmap" \
"|supervisor_mode_kernel" \
"|hvm_callback_vector"
So, not sure why it's failing. In xc_dom_parse_image(), I see
dom->parms.f_required is 0. I assume this is what the kernel is built
with and should be filled with the values above? Presumably,
dom->f_requested is what the library expects the kernel to have.
I set it as:
libxl__build_pv():
if (is_pvh) {
printf("info..features:%s\n", info->u.pv.features);
info->u.pv.features = strdup("auto_translated_physmap");
}
which is temporary hack, and I wanna consult with libxl expert for the
proper way to to this. I don't see any thing similar being done.
I can't tell why f_active is there. I also see supported, may be thats
the string of what the kernel supports. It is set to 0x11 ???
Hmm... Using readelf and hexeditor, I see the feature string properly
set in vmlinux (assume its in bzImage too). So, not sure whats going on.
thanks
Mukesh
next prev parent reply other threads:[~2012-11-14 1:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-13 3:09 PVH: libxl expertise Mukesh Rathor
2012-11-13 10:00 ` Ian Campbell
2012-11-13 19:53 ` Mukesh Rathor
2012-11-14 1:21 ` Mukesh Rathor [this message]
2012-11-14 1:31 ` Mukesh Rathor
2012-11-14 9:58 ` Ian Campbell
2012-11-14 19:04 ` Mukesh Rathor
2012-11-15 0:29 ` Mukesh Rathor
2012-11-15 2:13 ` Mukesh Rathor
2012-11-15 8:47 ` Ian Campbell
2012-11-13 17:14 ` Roger Pau Monné
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=20121113172138.1d3274d9@mantra.us.oracle.com \
--to=mukesh.rathor@oracle.com \
--cc=Ian.Campbell@citrix.com \
--cc=Xen-devel@lists.xensource.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 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).