projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d14800
)
xen/domain: check IOMMU options doesn't contain unknown bits set
author
Roger Pau Monné
<roger.pau@citrix.com>
Tue, 20 Oct 2020 12:43:16 +0000
(14:43 +0200)
committer
Jan Beulich
<jbeulich@suse.com>
Tue, 20 Oct 2020 12:43:16 +0000
(14:43 +0200)
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit:
59b27f360e3d9dc0378c1288e67a91fa41a77158
master date: 2020-10-02 08:38:50 +0200
xen/common/domain.c
patch
|
blob
|
history
diff --git
a/xen/common/domain.c
b/xen/common/domain.c
index a275a35c4fa3b01005f1509c80399dcf8831e42d..7bacf7cfede559d075c1bfc7621abb565edd8b56 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,