VMfailInvalid is expected in this test.
Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Rebase and cleanup.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
check(__func__, ex, EXINFO_SYM(GP, 0));
}
+/**
+ * vmxon with a physical address that exceeds the maximum address width
+ *
+ * Expect: VMfailInvalid
+ */
+static void test_vmxon_overly_wide_paddr(void)
+{
+ exinfo_t ex = stub_vmxon(1ULL << maxphysaddr);
+
+ check(__func__, ex, VMERR_INVALID);
+}
+
void test_vmxon(void)
{
unsigned long cr4 = read_cr4();
write_cr4(cr4 |= X86_CR4_VMXE);
test_vmxon_in_user();
+ test_vmxon_overly_wide_paddr();
}
/*