|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 11/12] x86: add domain type flags for domain parameters
Add flags for excluding pv- or hvm-domains for domain parameters.
Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
---
xen/arch/x86/domain.c | 5 +++++
xen/include/asm-x86/domain.h | 6 ++++++
2 files changed, 11 insertions(+)
diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c
index 8e57e7a181..557ebd1b87 100644
--- a/xen/arch/x86/domain.c
+++ b/xen/arch/x86/domain.c
@@ -2108,6 +2108,11 @@ __initcall(init_vcpu_kick_softirq);
int arch_domain_check_parflags(struct domain *d, unsigned int flags)
{
+ if ( flags & (is_hvm_domain(d) ? PARAM_FLAG_NOHVM
+ : (is_pv_32bit_domain(d) ?
+ PARAM_FLAG_NOPV32 : PARAM_FLAG_NOPV64)) )
+ return -EINVAL;
+
return 0;
}
diff --git a/xen/include/asm-x86/domain.h b/xen/include/asm-x86/domain.h
index 4da4353de7..57d15ed3cf 100644
--- a/xen/include/asm-x86/domain.h
+++ b/xen/include/asm-x86/domain.h
@@ -286,6 +286,12 @@ struct monitor_write_data {
uint64_t cr4;
};
+/* Flags for excluding domain types from per-domain parameters. */
+#define PARAM_FLAG_NOHVM 0x00000001
+#define PARAM_FLAG_NOPV32 0x00000002
+#define PARAM_FLAG_NOPV64 0x00000004
+#define PARAM_FLAG_NOPV (PARAM_FLAG_NOPV32 | PARAM_FLAG_NOPV64)
+
struct arch_domain
{
struct page_info *perdomain_l3_pg;
--
2.16.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |