Skip to content

Commit

Permalink
F #6437: Allow to set CPU_MODEL[FEATURES] on host and cluster level
Browse files Browse the repository at this point in the history
Signed-off-by: Kristian Feldsam <[email protected]>
  • Loading branch information
feldsam committed Dec 17, 2023
1 parent 725337e commit 61dc488
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vmm/LibVirtDriverKVM.cc
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ int LibVirtDriver::deployment_description_kvm(
// CPU SECTION
// ------------------------------------------------------------------------
get_attribute(vm, host, cluster, "CPU_MODEL", "MODEL", cpu_model);
get_attribute(vm, nullptr, nullptr, "CPU_MODEL", "FEATURES", cpu_feature);
get_attribute(vm, host, cluster, "CPU_MODEL", "FEATURES", cpu_feature);

if (cpu_model == "host-passthrough")
{
Expand Down
3 changes: 2 additions & 1 deletion src/vmm_mad/exec/vmm_exec_kvm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
# - VIRTIO_BLK_QUEUES
# * CPU_MODEL:
# - MODEL
# - FEATURES
# * DISK:
# - DRIVER
# - CACHE
Expand Down Expand Up @@ -83,7 +84,7 @@ FEATURES = [
IOTHREADS = "0"
]

#CPU_MODEL = [ MODEL = "host-passthrough"]
#CPU_MODEL = [ MODEL = "host-passthrough", FEATURES = "md-clear"]

DISK = [
DRIVER = "raw",
Expand Down

0 comments on commit 61dc488

Please sign in to comment.