From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: David Vrabel <david.vrabel@citrix.com>, boris.ostrovsky@oracle.com
Cc: Keir Fraser <keir@xen.org>, Jan Beulich <jbeulich@suse.com>,
xen-devel@lists.xen.org
Subject: Re: [PATCH] evtchn/fifo: map correct pages when guest is HVM
Date: Fri, 13 Dec 2013 10:10:52 -0500 [thread overview]
Message-ID: <20131213151052.GA5094@phenom.dumpdata.com> (raw)
In-Reply-To: <1386946193-8147-1-git-send-email-david.vrabel@citrix.com>
On Fri, Dec 13, 2013 at 02:49:53PM +0000, David Vrabel wrote:
> From: David Vrabel <david.vrabel@citrix.com>
>
> If a HVM guest attempts to use the FIFO-based ABI it will not receive
> any events and destroying the guest may crash Xen or trigger an assert
> when attempting to unmap a control block page. This occurs because
> Xen maps the wrong page for both the control blocks and the event
> arrays.
>
> In map_guest_page(), use the MFN of the guest's page and not the GFN
> when calling map_domain_page_global().
>
Should you have the Reported-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
flag?
> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
> ---
> xen/common/event_fifo.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/xen/common/event_fifo.c b/xen/common/event_fifo.c
> index fc43e62..a815b2d 100644
> --- a/xen/common/event_fifo.c
> +++ b/xen/common/event_fifo.c
> @@ -357,7 +357,7 @@ static int map_guest_page(struct domain *d, uint64_t gfn, void **virt)
> return -EINVAL;
> }
>
> - *virt = map_domain_page_global(gfn);
> + *virt = map_domain_page_global(page_to_mfn(p));
> if ( !*virt )
> {
> put_page_and_type(p);
> --
> 1.7.2.5
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2013-12-13 15:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-13 14:49 [PATCH] evtchn/fifo: map correct pages when guest is HVM David Vrabel
2013-12-13 14:59 ` Jan Beulich
2013-12-13 15:06 ` David Vrabel
2013-12-13 15:10 ` Konrad Rzeszutek Wilk [this message]
2013-12-13 15:14 ` David Vrabel
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=20131213151052.GA5094@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=boris.ostrovsky@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=jbeulich@suse.com \
--cc=keir@xen.org \
--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.