From: Tim Deegan <tim@xen.org>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: keir@xen.org, Christoph Egger <Christoph.Egger@amd.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>
Subject: Re: [xen-unstable test] 13539: regressions - FAIL
Date: Fri, 3 Aug 2012 09:34:41 +0100 [thread overview]
Message-ID: <20120803083441.GA25286@ocelot.phlegethon.org> (raw)
In-Reply-To: <1343980112.21372.4.camel@zakaz.uk.xensource.com>
At 08:48 +0100 on 03 Aug (1343983712), Ian Campbell wrote:
> nestedhvm: fix nested page fault build error on 32-bit
>
> cc1: warnings being treated as errors
> hvm.c: In function ???hvm_hap_nested_page_fault???:
> hvm.c:1282: error: passing argument 2 of ???nestedhvm_hap_nested_page_fault??? from incompatible pointer type /local/scratch/ianc/devel/xen-unstable.hg/xen/include/asm/hvm/nestedhvm.h:55: note: expected ???paddr_t *??? but argument is of type ???long unsigned int *???
>
> hvm_hap_nested_page_fault takes an unsigned long gpa and passes &gpa
> to nestedhvm_hap_nested_page_fault which takes a paddr_t *. Since both
> of the callers of hvm_hap_nested_page_fault (svm_do_nested_pgfault and
> ept_handle_violation) actually have the gpa which they pass to
> hvm_hap_nested_page_fault as a paddr_t I think it makes sense to
> change the argument to hvm_hap_nested_page_fault.
>
> The other user of gpa in hvm_hap_nested_page_fault is a call to
> p2m_mem_access_check, which currently also takes a paddr_t gpa but I
> think a paddr_t is appropriate there too.
>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
I think this is a candidate for backporting, too. As Jan points out,
this is a HAP bug on 32-bit with >4G guests.
Tim.
next prev parent reply other threads:[~2012-08-03 8:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-02 23:41 [xen-unstable test] 13539: regressions - FAIL xen.org
2012-08-03 5:12 ` Ian Campbell
2012-08-03 7:48 ` Ian Campbell
2012-08-03 7:57 ` Ian Campbell
2012-08-03 7:59 ` Jan Beulich
2012-08-03 8:00 ` Ian Campbell
2012-08-03 8:44 ` Jan Beulich
2012-08-03 9:11 ` Christoph Egger
2012-08-03 8:34 ` Tim Deegan [this message]
2012-08-03 8:37 ` Ian Campbell
2012-08-03 8:39 ` Tim Deegan
2012-08-03 8:55 ` Ian Campbell
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=20120803083441.GA25286@ocelot.phlegethon.org \
--to=tim@xen.org \
--cc=Christoph.Egger@amd.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=keir@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).