libvirt: fix incorrect host cpus giving to emulator threads when RT
Realtime guarantees in certain operating systems require that the
thread that is running the QEMU emulator is pinned to a physical CPU
that is *not* the same as any physical CPU that the vCPUs for a
realtime guest are pinned to. This patch ensures that the value of the
hw:cpu_realtime_mask flavor extraspec property is respected when
creating the libvirt configuration XML and sets emulatorpin values to
a physical CPU matching the hw:cpu_realtime_mask value.
Change-Id: I7f50dde0753b059a690dc50172fee645c94b8e5b
Closes-Bug: #1614054
(cherry picked from commit 6683bf9b7dc575ef9516f0cdc395b8da1b81c233)
Reviewed: https:/ /review. openstack. org/393487 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=046b640e2fb c243c6e9c55708d 521e53f1485ddf
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 046b640e2fbc243 c6e9c55708d521e 53f1485ddf
Author: Sahid Orentino Ferdjaoui <email address hidden>
Date: Wed Aug 17 06:51:25 2016 -0400
libvirt: fix incorrect host cpus giving to emulator threads when RT
Realtime guarantees in certain operating systems require that the cpu_realtime_ mask flavor extraspec property is respected when realtime_ mask value.
thread that is running the QEMU emulator is pinned to a physical CPU
that is *not* the same as any physical CPU that the vCPUs for a
realtime guest are pinned to. This patch ensures that the value of the
hw:
creating the libvirt configuration XML and sets emulatorpin values to
a physical CPU matching the hw:cpu_
Change-Id: I7f50dde0753b05 9a690dc50172fee 645c94b8e5b f9516f0cdc395b8 da1b81c233)
Closes-Bug: #1614054
(cherry picked from commit 6683bf9b7dc575e