projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
661b3e4
)
xen/domain: check IOMMU options doesn't contain unknown bits set
author
Roger Pau Monné
<roger.pau@citrix.com>
Fri, 2 Oct 2020 06:38:50 +0000
(08:38 +0200)
committer
Jan Beulich
<jbeulich@suse.com>
Fri, 2 Oct 2020 06:38:50 +0000
(08:38 +0200)
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/domain.c
patch
|
blob
|
history
diff --git
a/xen/common/domain.c
b/xen/common/domain.c
index 8cfa2e0b6b51c7e59a37f799d5eb6d801c4cdb5a..c4a480fa14ff6929cbc6db499808d0af7549a44b 100644
(file)
--- a/
xen/common/domain.c
+++ b/
xen/common/domain.c
@@
-310,6
+310,12
@@
static int sanitise_domain_config(struct xen_domctl_createdomain *config)
return -EINVAL;
}
+ if ( config->iommu_opts & ~XEN_DOMCTL_IOMMU_no_sharept )
+ {
+ dprintk(XENLOG_INFO, "Unknown IOMMU options %#x\n", config->iommu_opts);
+ return -EINVAL;
+ }
+
if ( !(config->flags & XEN_DOMCTL_CDF_iommu) && config->iommu_opts )
{
dprintk(XENLOG_INFO,