[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v2 11/23] x86: XENMEM_resource_ioreq_server is HVM only
Put the entire case branch under CONFIG_HVM. Nonetheless check HVM before trying to get ioreq server. Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- v2: put entire case branch under CONFIG_HVM --- xen/arch/x86/mm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index a774458..ec3caf4 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -4376,12 +4376,17 @@ int arch_acquire_resource(struct domain *d, unsigned int type, switch ( type ) { +#ifdef CONFIG_HVM case XENMEM_resource_ioreq_server: { ioservid_t ioservid = id; unsigned int i; rc = -EINVAL; + if ( !is_hvm_domain(d) ) + break; + + rc = -EINVAL; if ( id != (unsigned int)ioservid ) break; @@ -4404,6 +4409,7 @@ int arch_acquire_resource(struct domain *d, unsigned int type, *flags |= XENMEM_rsrc_acq_caller_owned; break; } +#endif default: rc = -EOPNOTSUPP; -- git-series 0.9.1 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |