From: Wei Liu <wei.liu2@citrix.com>
To: Xen-devel <xen-devel@lists.xenproject.org>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
Wei Liu <wei.liu2@citrix.com>, Jan Beulich <JBeulich@suse.com>
Subject: [PATCH 05/18] x86/domctl: use plain bool
Date: Fri, 30 Jun 2017 18:01:13 +0100 [thread overview]
Message-ID: <20170630170126.4148-6-wei.liu2@citrix.com> (raw)
In-Reply-To: <20170630170126.4148-1-wei.liu2@citrix.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
xen/arch/x86/domctl.c | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
diff --git a/xen/arch/x86/domctl.c b/xen/arch/x86/domctl.c
index f40e989fd8..7fa58b49af 100644
--- a/xen/arch/x86/domctl.c
+++ b/xen/arch/x86/domctl.c
@@ -318,7 +318,7 @@ long arch_do_domctl(
struct vcpu *curr = current;
struct domain *currd = curr->domain;
long ret = 0;
- bool_t copyback = 0;
+ bool copyback = false;
unsigned long i;
switch ( domctl->cmd )
@@ -330,7 +330,7 @@ long arch_do_domctl(
if ( ret == -ERESTART )
return hypercall_create_continuation(__HYPERVISOR_arch_1,
"h", u_domctl);
- copyback = 1;
+ copyback = true;
break;
case XEN_DOMCTL_ioport_permission:
@@ -405,7 +405,7 @@ long arch_do_domctl(
spin_unlock(&d->page_alloc_lock);
domctl->u.getmemlist.num_pfns = i;
- copyback = 1;
+ copyback = true;
break;
}
@@ -576,7 +576,7 @@ long arch_do_domctl(
ret = -EFAULT;
gethvmcontext_out:
- copyback = 1;
+ copyback = true;
xfree(c.data);
break;
}
@@ -611,7 +611,7 @@ long arch_do_domctl(
case XEN_DOMCTL_get_address_size:
domctl->u.address_size.size = is_pv_32bit_domain(d) ? 32 :
BITS_PER_LONG;
- copyback = 1;
+ copyback = true;
break;
case XEN_DOMCTL_set_machine_address_size:
@@ -623,7 +623,7 @@ long arch_do_domctl(
case XEN_DOMCTL_get_machine_address_size:
domctl->u.address_size.size = d->arch.physaddr_bitsize;
- copyback = 1;
+ copyback = true;
break;
case XEN_DOMCTL_sendtrigger:
@@ -874,7 +874,7 @@ long arch_do_domctl(
ret = 0;
vcpu_unpause(v);
- copyback = 1;
+ copyback = true;
}
else
{
@@ -959,7 +959,7 @@ long arch_do_domctl(
&domctl->u.tsc_info.gtsc_khz,
&domctl->u.tsc_info.incarnation);
domain_unpause(d);
- copyback = 1;
+ copyback = true;
}
break;
@@ -1003,7 +1003,7 @@ long arch_do_domctl(
domctl->u.gdbsx_guest_memio.remain = domctl->u.gdbsx_guest_memio.len;
ret = gdbsx_guest_mem_io(domctl->domain, &domctl->u.gdbsx_guest_memio);
if ( !ret )
- copyback = 1;
+ copyback = true;
break;
case XEN_DOMCTL_gdbsx_pausevcpu:
@@ -1060,7 +1060,7 @@ long arch_do_domctl(
}
}
}
- copyback = 1;
+ copyback = true;
break;
}
@@ -1220,7 +1220,7 @@ long arch_do_domctl(
vcpuextstate_out:
if ( domctl->cmd == XEN_DOMCTL_getvcpuextstate )
- copyback = 1;
+ copyback = true;
break;
}
@@ -1238,7 +1238,7 @@ long arch_do_domctl(
&domctl->u.audit_p2m.orphans,
&domctl->u.audit_p2m.m2p_bad,
&domctl->u.audit_p2m.p2m_bad);
- copyback = 1;
+ copyback = true;
}
break;
#endif /* P2M_AUDIT */
@@ -1282,7 +1282,7 @@ long arch_do_domctl(
if ( domctl->cmd == XEN_DOMCTL_get_vcpu_msrs )
{
- ret = 0; copyback = 1;
+ ret = 0; copyback = true;
/* NULL guest handle is a request for max size. */
if ( guest_handle_is_null(vmsrs->msrs) )
@@ -1379,7 +1379,7 @@ long arch_do_domctl(
else
{
vmsrs->msr_count = i;
- copyback = 1;
+ copyback = true;
}
}
break;
@@ -1407,7 +1407,7 @@ long arch_do_domctl(
case XEN_DOMCTL_PSR_CMT_OP_QUERY_RMID:
domctl->u.psr_cmt_op.data = d->arch.psr_rmid;
- copyback = 1;
+ copyback = true;
break;
default:
@@ -1441,21 +1441,21 @@ long arch_do_domctl(
ret = psr_get_l3_cbm(d, domctl->u.psr_cat_op.target,
&domctl->u.psr_cat_op.data,
PSR_CBM_TYPE_L3);
- copyback = 1;
+ copyback = true;
break;
case XEN_DOMCTL_PSR_CAT_OP_GET_L3_CODE:
ret = psr_get_l3_cbm(d, domctl->u.psr_cat_op.target,
&domctl->u.psr_cat_op.data,
PSR_CBM_TYPE_L3_CODE);
- copyback = 1;
+ copyback = true;
break;
case XEN_DOMCTL_PSR_CAT_OP_GET_L3_DATA:
ret = psr_get_l3_cbm(d, domctl->u.psr_cat_op.target,
&domctl->u.psr_cat_op.data,
PSR_CBM_TYPE_L3_DATA);
- copyback = 1;
+ copyback = true;
break;
default:
@@ -1490,7 +1490,7 @@ void arch_get_info_guest(struct vcpu *v, vcpu_guest_context_u c)
{
unsigned int i;
const struct domain *d = v->domain;
- bool_t compat = is_pv_32bit_domain(d);
+ bool compat = is_pv_32bit_domain(d);
#define c(fld) (!compat ? (c.nat->fld) : (c.cmp->fld))
if ( !is_pv_domain(d) )
--
2.11.0
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-06-30 17:01 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-30 17:01 [PATCH 00/18] x86: more bool_t to bool cleanup Wei Liu
2017-06-30 17:01 ` [PATCH 01/18] x86/acpi: use plain bool Wei Liu
2017-06-30 17:01 ` [PATCH 02/18] x86/apic.c: " Wei Liu
2017-06-30 17:26 ` Andrew Cooper
2017-06-30 17:01 ` [PATCH 03/18] x86/debug.c: " Wei Liu
2017-06-30 17:28 ` Andrew Cooper
2017-06-30 17:01 ` [PATCH 04/18] x86/dmi.c: " Wei Liu
2017-06-30 17:01 ` Wei Liu [this message]
2017-06-30 17:01 ` [PATCH 06/18] x86/hpet.c: " Wei Liu
2017-06-30 17:01 ` [PATCH 07/18] x86/e820.c: use plan bool Wei Liu
2017-06-30 17:01 ` [PATCH 08/18] x86/i387.c: use plain bool Wei Liu
2017-06-30 17:01 ` [PATCH 09/18] x86/i8259.c: " Wei Liu
2017-06-30 17:01 ` [PATCH 10/18] x86/monitor.c: " Wei Liu
2017-06-30 17:45 ` Andrew Cooper
2017-06-30 18:30 ` Razvan Cojocaru
2017-06-30 17:01 ` [PATCH 11/18] x86/xstate.c: " Wei Liu
2017-06-30 17:01 ` [PATCH 12/18] x86/srat.c: " Wei Liu
2017-06-30 17:01 ` [PATCH 13/18] x86/smpboot.c: " Wei Liu
2017-06-30 17:01 ` [PATCH 14/18] x86/io_apic.c: " Wei Liu
2017-06-30 17:53 ` Andrew Cooper
2017-06-30 17:01 ` [PATCH 15/18] x86/mpparse.c: " Wei Liu
2017-06-30 17:54 ` Andrew Cooper
2017-06-30 17:01 ` [PATCH 16/18] x86/numa.c: " Wei Liu
2017-06-30 17:01 ` [PATCH 17/18] x86/msi.c: " Wei Liu
2017-06-30 17:01 ` [PATCH 18/18] x86/psr.c: " Wei Liu
2017-06-30 18:00 ` [PATCH 00/18] x86: more bool_t to bool cleanup Andrew Cooper
2017-07-03 8:10 ` Jan Beulich
2017-07-03 12:54 ` Wei Liu
2017-07-03 13:19 ` Jan Beulich
2017-07-04 10:43 ` Wei Liu
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=20170630170126.4148-6-wei.liu2@citrix.com \
--to=wei.liu2@citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--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 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).