Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171408229
D51553.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
651 B
Referenced Files
None
Subscribers
None
D51553.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 Hans Rosenfeld
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -569,6 +570,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
Fri, Sep 11, 11:22 PM (13 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38742777
Default Alt Text
D51553.diff (651 B)
Attached To
Mode
D51553: vmm/amd64: VM_SET_CPUID ioctl should refuse zero-entry non-legacy cpuid cfg
Attached
Detach File
Event Timeline
Log In to Comment