Page MenuHomeFreeBSD

D51553.1793796101.diff
No OneTemporary

Authored By
Unknown
Size
659 B
Referenced Files
None
Subscribers
None

D51553.1793796101.diff

diff --git a/sys/amd64/vmm/vmm_dev_machdep.c b/sys/amd64/vmm/vmm_dev_machdep.c
--- a/sys/amd64/vmm/vmm_dev_machdep.c
+++ b/sys/amd64/vmm/vmm_dev_machdep.c
@@ -2,6 +2,7 @@
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2011 NetApp, Inc.
+ * Copyright (c) 2026 The FreeBSD Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -578,6 +579,13 @@
free(entries, M_VMMDEV);
break;
}
+ } else {
+ /*
+ * Not using "legacy" handling and no cpuid entries
+ * given isn't allowed either.
+ */
+ error = EINVAL;
+ break;
}
vcpu_cpuid_config_t vm_cfg = {

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 4, 12:41 PM (4 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41284774
Default Alt Text
D51553.1793796101.diff (659 B)

Event Timeline