From: Tim Deegan <tim@xen.org>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH 4/4] x86/shadow: Switch to using bool
Date: Wed, 28 Jun 2017 14:55:58 +0100 [thread overview]
Message-ID: <20170628135558.GA63687@deinos.phlegethon.org> (raw)
In-Reply-To: <1498648582-15521-4-git-send-email-andrew.cooper3@citrix.com>
Hi,
At 12:16 +0100 on 28 Jun (1498652182), Andrew Cooper wrote:
> sh_pin() has boolean properties, so switch its return type.
>
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Good idea, thanks.
> -static bool_t
> +static bool
> sh_write_guest_entry(struct vcpu *v, intpte_t *p, intpte_t new, mfn_t gmfn)
Can you please update paging.h too? We need matching changes to
write_guest_entry and cmpxchg_guest_entry in struct shadow_paging_mode,
and invlpg in struct paging_mode.
I'm a little surprised that the compiler doesn't complain. I suppose
the implicit promotion to int makes it all equivalent.
> @@ -3620,7 +3620,7 @@ static int sh_page_fault(struct vcpu *v,
> * instruction should be issued on the hardware, or 0 if it's safe not
> * to do so.
> */
> -static bool_t sh_invlpg(struct vcpu *v, unsigned long va)
> +static bool sh_invlpg(struct vcpu *v, unsigned long va)
This comment needs to be updated too.
> @@ -102,7 +102,7 @@ int shadow_set_allocation(struct domain *d, unsigned int pages,
> ({ ASSERT_UNREACHABLE(); -EOPNOTSUPP; })
>
> static inline void sh_remove_shadows(struct domain *d, mfn_t gmfn,
> - bool_t fast, bool_t all) {}
> + bool fast, bool all) {}
Actually, please make these ints, to match the main implementation.
Cheers,
Tim.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-06-28 13:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-28 11:16 [PATCH 1/4] xen/tmem: Switch to using bool Andrew Cooper
2017-06-28 11:16 ` [PATCH 2/4] xen/flask: " Andrew Cooper
2017-08-10 14:37 ` Daniel De Graaf
2017-06-28 11:16 ` [PATCH 3/4] xen/efi: " Andrew Cooper
2017-06-28 11:53 ` Jan Beulich
2017-06-28 11:16 ` [PATCH 4/4] x86/shadow: " Andrew Cooper
2017-06-28 13:55 ` Tim Deegan [this message]
2017-06-30 15:40 ` [PATCH v2 " Andrew Cooper
2017-06-30 15:44 ` Tim Deegan
2017-06-28 13:08 ` [PATCH 1/4] xen/tmem: " Wei Liu
2017-06-28 13:53 ` Konrad Rzeszutek Wilk
2017-06-28 13:54 ` Andrew Cooper
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=20170628135558.GA63687@deinos.phlegethon.org \
--to=tim@xen.org \
--cc=andrew.cooper3@citrix.com \
--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.