> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/pmo/how-to/how-to-expose-all-physical-cpu-features-to-kvm.md).

# How-To Expose all Physical CPU Features to KVM

## Problem

You want to expose a flag present on the physical CPU to the virtual machines running on the host.

## Environment

* Platform9 Managed OpenStack - All versions
* Nova
* KVM/qemu

## Procedure

1. Update the *Nova* configuration file locate at */opt/pf9/etc/nova/conf.d/nova\_override.conf* and make sure the following option is set within the **\[libvirt]** stanza.

{% tabs %}
{% tab title="None" %}

```none
[pf9@lab01~]$ cat /opt/pf9/etc/nova/conf.d/nova_override.conf.........[libvirt]cpu_mode=host-model
```

{% endtab %}
{% endtabs %}

2. Once the file has been modified, restart the *pf9-ostackhost* service by running the following command.

{% tabs %}
{% tab title="None" %}

```none
# sudo systemctl restart pf9-ostackhost
```

{% endtab %}
{% endtabs %}

3. Hard reboot the VMs where you want to see the additional flags by running the following command.

{% tabs %}
{% tab title="None" %}

```none
# openstack server reboot --hard [Instance_UUID]
```

{% endtab %}
{% endtabs %}

## Additional Information

Using `host-model` is a safe choice if your compute node CPUs are largely identical. However, if your compute nodes span multiple processor generations, you may be better advised to select a `custom` CPU model.

<https://docs.openstack.org/nova/rocky/admin/configuration/hypervisor-kvm.html#host-model-default-for-kvm-qemu>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://platform9.com/kb/pmo/how-to/how-to-expose-all-physical-cpu-features-to-kvm.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
