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

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Administration_Guide/sect-libvirt-dom-xml-cpu-model-top.html

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个方面:

  1. 版本capability
  2. 用在image filter的architecture, hypervisor type, VM mode
  3. 不易被发现的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.

最新文章

  1. PHP 观察者模式
  2. Android随笔之——Android单元测试
  3. 转-HttpClient4.3 连接管理
  4. Hello Point——WebGL
  5. Java Se:Java Security
  6. 攻城狮在路上(叁)Linux(十一)--- 用户与用户组、文件权限、目录配置
  7. Delphi Memory-Mapped File简单示例
  8. 剑指offer系列57---整数中1出现的次数
  9. 解决mac os x 10.9.1 AppStore ‘Use the Purchases page to try again’ 问题
  10. DQL
  11. Python 2.7 学习笔记 基本知识
  12. HDU 1072/BFS
  13. Led控件
  14. region URL请求数据
  15. lua table操作实例详解
  16. CodeForces-740B Alyona and flowers
  17. centos7.4 调整根目录大小
  18. VirtualBox安装Archlinux并配置桌面环境
  19. JavaScript学习历程01
  20. 无法连接到 OPC服务器[无此类接口支持(异常来自HRESULT:0x80004002(E_NOINTERFACE))]

热门文章

  1. Instapaper 使用经验和技巧
  2. 【python】-- Django ORM(基础)
  3. MySQL 的约束
  4. 如何在有input() 语句下断点调试(内附高清无码福利)
  5. Docker介绍及优缺点对比分析
  6. Linux下安装Java环境配置
  7. 和openjdk在一起的第一天-第一次接触有些生疏,就先熟悉一下吧
  8. 系统架构师考试——程序计数器 PC, 指令寄存器IR、状态寄存器SR、通用寄存器GR
  9. Yii2 使用 Beanstalk 队列系统
  10. ThinkPHP框架基础知识一