Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177098274
D51553.1793800741.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
659 B
Referenced Files
None
Subscribers
None
D51553.1793800741.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 4, 1:59 PM (5 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41284774
Default Alt Text
D51553.1793800741.diff (659 B)
Attached To
Mode
D51553: vmm/amd64: VM_SET_CPUID ioctl should refuse zero-entry non-legacy cpuid cfg
Attached
Detach File
Event Timeline