libvirt cpu mode
libvirt中 cpu mode可以有以下3种:
custom :
该模式下cpu element用来描述guest可见的CPU,该模式也是mode的default模式,它会使得persistent guest不论host CPU是怎样,guest可见的CPU是一样的。有利于migration。
host-model
:
该模式下,domain初始化时会copy当前host cpu的capabilities到guest 的domain。match
attribute 和任何feature elements不适用该模式。
host-passthrough:
该模式下,guest可见的CPU与当前运行之上的host的CPU完全相同,model和任何feature elements不适用该模式。
https://libvirt.org/formatdomain.html#elementsCPU
libvirt cpu mode 在nova中通过一下nova.conf来配置:
# Set to "host-model" to clone the host CPU feature flags; to "host-
# passthrough" to use the host CPU model exactly; to "custom" to use a named
# CPU model; to "none" to not set any CPU model. If virt_type="kvm|qemu", it
# will default to "host-model", otherwise it will default to "none" (string
# value)
# Allowed values: host-model, host-passthrough, custom, none
#cpu_mode = <None>
https://wiki.openstack.org/wiki/LibvirtXMLCPUModel
https://review.openstack.org/#/c/286520/3/specs/newton/approved/expose-host-capabilities.rst
打算扩展和统一host capability,主要在现有的host capability之上扩展以下3个方面:
- 版本capability
- 用在image filter的architecture, hypervisor type, VM mode
- 不易被发现的e.g.: SSD, SR-IOV, fibre channel, etc。
https://review.openstack.org/#/c/309762/2/specs/newton/approved/standardize-capabilities.rst
试图采用枚举的方式(nova.objects.fields.Enum-based)来同一capability的描述模型。
它首先定义了capabilities:
A capability is a *singular* piece of information describing some **functionality** or **feature** of an entity that can be provided to a custom。
比如:
* `hw:x86_cpu_instruction_set_ext:sse`
* `hw:x86_cpu_instruction_set_ext:mmx`
用来表述CPU的指令集
* `virt:libvirt:set_admin_pass`
* `virt:libvirt:huge_pages`
* `virt:libvirt:uefi_boot`
用来表述libvirt的capability.
最新文章
- PHP 观察者模式
- Android随笔之——Android单元测试
- 转-HttpClient4.3 连接管理
- Hello Point——WebGL
- Java Se:Java Security
- 攻城狮在路上(叁)Linux(十一)--- 用户与用户组、文件权限、目录配置
- Delphi Memory-Mapped File简单示例
- 剑指offer系列57---整数中1出现的次数
- 解决mac os x 10.9.1 AppStore ‘Use the Purchases page to try again’ 问题
- DQL
- Python 2.7 学习笔记 基本知识
- HDU 1072/BFS
- Led控件
- region URL请求数据
- lua table操作实例详解
- CodeForces-740B Alyona and flowers
- centos7.4 调整根目录大小
- VirtualBox安装Archlinux并配置桌面环境
- JavaScript学习历程01
- 无法连接到 OPC服务器[无此类接口支持(异常来自HRESULT:0x80004002(E_NOINTERFACE))]