xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Andres Lagar-Cavilla" <andres@lagarcavilla.org>
To: Tim Deegan <tim@xen.org>
Cc: Olaf Hering <olaf@aepfle.de>,
	xen-devel@lists.xensource.com, ian.campbell@citrix.com,
	andres@gridcentric.ca, keir.xen@gmail.com,
	ian.jackson@citrix.com, adin@gridcentric.ca
Subject: Re: [PATCH] RFC: Use memops for mem paging, sharing, and access, instead of domctls
Date: Thu, 26 Jan 2012 05:00:24 -0800	[thread overview]
Message-ID: <f5022e2232ca5ccaa9552f9333dff0e6.squirrel@webmail.lagarcavilla.org> (raw)
In-Reply-To: <20120126125746.GC74165@ocelot.phlegethon.org>

> At 08:04 -0800 on 12 Jan (1326355474), Andres Lagar-Cavilla wrote:
>> > On Wed, Jan 11, Andres Lagar-Cavilla wrote:
>> >
>> >> +++ b/xen/include/public/domctl.h
>> >
>> >> +/* Use for teardown/setup of helper<->hypervisor interface for
>> paging,
>> >> + * access and sharing.*/
>> >>  struct xen_domctl_mem_event_op {
>> >>      uint32_t       op;           /* XEN_DOMCTL_MEM_EVENT_OP_*_* */
>> >>      uint32_t       mode;         /* XEN_DOMCTL_MEM_EVENT_OP_* */
>> >>
>> >> -    union {
>> >> -        /* OP_ENABLE IN:  Virtual address of shared page */
>> >> -        uint64_aligned_t shared_addr;
>> >> -        /* PAGING_PREP IN: buffer to immediately fill page in */
>> >> -        uint64_aligned_t buffer;
>> >> -    } u;
>> >> +    uint64_aligned_t shared_addr;  /* IN:  Virtual address of shared
>> >> page */
>> >>      uint64_aligned_t ring_addr;    /* IN:  Virtual address of ring
>> page
>> >> */
>> >>
>> >> -    /* Other OPs */
>> >> -    uint64_aligned_t gfn;          /* IN:  gfn of page being
>> operated
>> >> on */
>> >> +    /* For binary backwards compatibility */
>> >> +    uint64_aligned_t pad;
>> >>  };
>> >
>> > Assuming this struct is routed through libxc, and libxc gets a new
>> > SONAME for every release, doesnt this mean that every old binary has
>> to
>> > be recompiled anyway for the new release?
>> > If so, the padding is not needed.
>> Agreed, basically. Waiting to hear from tools maintainers about best
>> approach to libxc.
>>
>> It seems that there aren't that many users relying on a fixed ABI, so we
>> can (still, until 4.2) change things. But obviously I want to be
>> careful.
>
> Ping?

I have working code. Except that it blue-screened W7 once, so it's been
put in the back-burner for next week.

I can repost for review. Ok, I will.

I have not heard any objections thus far to the ABI change.

Andres
>
> Tim.
>

      reply	other threads:[~2012-01-26 13:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-11 18:42 [PATCH] RFC: Use memops for mem paging, sharing, and access, instead of domctls Andres Lagar-Cavilla
2012-01-12 13:01 ` Tim Deegan
2012-01-12 14:43 ` Olaf Hering
2012-01-12 16:04   ` Andres Lagar-Cavilla
2012-01-26 12:57     ` Tim Deegan
2012-01-26 13:00       ` Andres Lagar-Cavilla [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=f5022e2232ca5ccaa9552f9333dff0e6.squirrel@webmail.lagarcavilla.org \
    --to=andres@lagarcavilla.org \
    --cc=adin@gridcentric.ca \
    --cc=andres@gridcentric.ca \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@citrix.com \
    --cc=keir.xen@gmail.com \
    --cc=olaf@aepfle.de \
    --cc=tim@xen.org \
    --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).