[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH for-next v3 20/22] x86: guest_has_trap_callback should return bool
No functional change. Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- xen/arch/x86/pv/traps.c | 4 ++-- xen/include/asm-x86/traps.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/xen/arch/x86/pv/traps.c b/xen/arch/x86/pv/traps.c index ea5b543247..c36b650f5f 100644 --- a/xen/arch/x86/pv/traps.c +++ b/xen/arch/x86/pv/traps.c @@ -274,8 +274,8 @@ long unregister_guest_nmi_callback(void) return 0; } -int guest_has_trap_callback(struct domain *d, uint16_t vcpuid, - unsigned int trap_nr) +bool guest_has_trap_callback(struct domain *d, uint16_t vcpuid, + unsigned int trap_nr) { struct vcpu *v; struct trap_info *t; diff --git a/xen/include/asm-x86/traps.h b/xen/include/asm-x86/traps.h index 4e8760482f..7f36f6c1a7 100644 --- a/xen/include/asm-x86/traps.h +++ b/xen/include/asm-x86/traps.h @@ -33,10 +33,10 @@ void async_exception_cleanup(struct vcpu *); /** * guest_has_trap_callback * - * returns true (non-zero) if guest registered a trap handler + * returns true if guest registered a trap handler */ -extern int guest_has_trap_callback(struct domain *d, uint16_t vcpuid, - unsigned int trap_nr); +extern bool guest_has_trap_callback(struct domain *d, uint16_t vcpuid, + unsigned int trap_nr); /** * send_guest_trap -- 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |