From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
Tim Deegan <tim@xen.org>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH v4 4/4] xen: rework paging_log_dirty_op to work with hvm guests
Date: Fri, 8 May 2015 10:51:12 +0200 [thread overview]
Message-ID: <554C7900.2020603@citrix.com> (raw)
In-Reply-To: <554C92B30200007800078040@mail.emea.novell.com>
El 08/05/15 a les 10.40, Jan Beulich ha escrit:
>>>> On 08.05.15 at 10:28, <roger.pau@citrix.com> wrote:
>> El 07/05/15 a les 17.48, Jan Beulich ha escrit:
>>>>>> On 07.05.15 at 16:29, <roger.pau@citrix.com> wrote:
>>>> --- a/xen/arch/x86/mm/paging.c
>>>> +++ b/xen/arch/x86/mm/paging.c
>>>> @@ -408,6 +408,51 @@ int paging_mfn_is_dirty(struct domain *d, mfn_t gmfn)
>>>> return rv;
>>>> }
>>>>
>>>> +static inline void *map_dirty_bitmap(XEN_GUEST_HANDLE_64(uint8)
>> dirty_bitmap,
>>>> + unsigned long pages,
>>>> + struct page_info **page)
>>>> +{
>>>> + uint32_t pfec = PFEC_page_present | PFEC_write_access;
>>>> + unsigned long gfn;
>>>> + p2m_type_t p2mt;
>>>> +
>>>> + gfn = paging_gva_to_gfn(current,
>>>> + (paddr_t)(dirty_bitmap.p + (pages >> 3)),
>>>
>>> Why paddr_t?
>>
>> Without it I get:
>>
>> paging.c:421:29: error: passing argument 2 of 'paging_gva_to_gfn' makes
>> integer from pointer without a cast [-Werror]
>
> I didn't object to the cast, but to the type used in it: This is a virtual
> (guest) address, and the respective function parameter has type
> "unsigned long".
Right, thanks, I have no idea why I've used paddr_t, will be fixed in
next iteration.
Roger.
prev parent reply other threads:[~2015-05-08 8:51 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-07 14:29 [PATCH v4 0/4] xen/pvh: enable migration on PVH Dom0 Roger Pau Monne
2015-05-07 14:29 ` [PATCH v4 1/4] xen: introduce a helper to allocate non-contiguous memory Roger Pau Monne
2015-05-07 15:22 ` Tim Deegan
2015-05-07 15:32 ` Tim Deegan
2015-05-07 15:52 ` Jan Beulich
2015-05-07 15:29 ` Jan Beulich
2015-05-07 14:29 ` [PATCH v4 2/4] xen/shadow: fix shadow_track_dirty_vram to work on hvm guests Roger Pau Monne
2015-05-07 15:27 ` Tim Deegan
2015-05-07 14:29 ` [PATCH v4 3/4] xen/hap: make hap_track_dirty_vram use non-contiguous memory for temporary map Roger Pau Monne
2015-05-07 15:29 ` Tim Deegan
2015-05-07 14:29 ` [PATCH v4 4/4] xen: rework paging_log_dirty_op to work with hvm guests Roger Pau Monne
2015-05-07 15:48 ` Jan Beulich
2015-05-08 8:28 ` Roger Pau Monné
2015-05-08 8:40 ` Jan Beulich
2015-05-08 8:51 ` Roger Pau Monné [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=554C7900.2020603@citrix.com \
--to=roger.pau@citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.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.