This helps with dead code elimination. No functional change.
Signed-off-by: Wei Liu <[email protected]>
---
xen/arch/x86/mm.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c
index 8ac4412..f3fa6ce 100644
--- a/xen/arch/x86/mm.c
+++ b/xen/arch/x86/mm.c
@@ -4382,6 +4382,10 @@ int arch_acquire_resource(struct domain *d, unsigned int
type,
unsigned int i;
rc = -EINVAL;
+ if ( !is_hvm_domain(d) )
+ break;
+
+ rc = -EINVAL;
if ( id != (unsigned int)ioservid )
break;
--
git-series 0.9.1
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel