[Starlingx-discuss] cpu model Passthrough with Intel/Skylake-Server-IBRS

von Hoesslin, Volker Volker.Hoesslin at swsn.de
Tue Mar 26 08:00:16 UTC 2019


what about the also supported AMD EPYC CPUs by kvm?

/usr/lib/python2.7/site-packages/nova/scheduler/filters/vcpu_model_filter.py

    def _is_host_kvm(self, cpu_info):
        info = jsonutils.loads(cpu_info)
        if 'vmx' in info['features']:
            return True
        if 'svm' in info['features']: //this add AMD support
            return True
        return False

--------------

/usr/lib/python2.7/site-packages/nova/objects/fields.py

# WRS: List of Intel based guest CPU models that can be selected from a user
# defined instance type
class CPUModel(BaseNovaEnum):
    # We use the ordering of the cpu models to determine whether a
    # given host can emulate a specified virtual model, so it's not
    # just an enum.
    ALL = ("Passthrough",
           "EPYC",          // add AMD EPYC
           "EPYC-IBPB",     // add AMD EPYC-IBPB
           "Conroe",
           "Penryn",
...


Volker...




________________________________
Von: Sun, Austin [austin.sun at intel.com]
Gesendet: Dienstag, 26. März 2019 07:37
An: Himanshu Goyal; starlingx-discuss at lists.starlingx.io; Alonso, Juan Carlos; Hu, Yong; Prashant.Patil at radisys.com; Somshekar.Ydlapur at radisys.com
Betreff: Re: [Starlingx-discuss] cpu model Passthrough with Intel/Skylake-Server-IBRS

Hi :
You have to  patch (stx-nova) https://github.com/starlingx-staging/stx-nova/pull/17/files/2556ad28eb44a6916922ad2b489ac610db2ffeb5  and (stx-glance)  https://github.com/starlingx-staging/stx-glance/pull/5/commits/35d76808893cf0869b54f758d958769a19c0c879
into your system  and restart the necessary nova , glance services

Thanks.
BR
Austin Sun.


From: Himanshu Goyal [mailto:himanshugoyal500 at gmail.com]
Sent: Tuesday, March 26, 2019 1:53 PM
To: starlingx-discuss at lists.starlingx.io; Alonso, Juan Carlos <juan.carlos.alonso at intel.com>; Hu, Yong <yong.hu at intel.com>; Prashant.Patil at radisys.com; Somshekar.Ydlapur at radisys.com
Subject: Re: [Starlingx-discuss] cpu model Passthrough with Intel/Skylake-Server-IBRS

+ prashant, som

Adding my team members in the same.

Regards,
Himanshu Goyal

On Mon, Mar 25, 2019 at 1:33 PM Himanshu Goyal <himanshugoyal500 at gmail.com<mailto:himanshugoyal500 at gmail.com>> wrote:
Hi,

I tried manual installation of rpm packages "qemu-kvm-ev-3.0.0-0.tis.97.x86_64.rpm" but it is not working, Please help how can i upgrade the required packages.

Many thanks,
Himanshu Goyal


On Fri, Mar 22, 2019 at 3:57 PM Himanshu Goyal <himanshugoyal500 at gmail.com<mailto:himanshugoyal500 at gmail.com>> wrote:
Hi,

I'm using starlingX release "stx.2018.10", and "Intel/Skylake-Server-IBRS" as my compute server, trying to create a VM with cpu_model as passthrough but it is giving a error.

Error:
No valid host was found. There are not enough hosts available. compute-0: (ComputeFilter) host is disabled, reason: disabled by VIM, compute-1: (VCpuModelFilter) Host VCPU model Skylake-Server-IBRS required Passthrough

I checked the starling-Discuss page & found it is fixed with qemu-kvm version:qemu-kvm-ev-3.0.0-0.tis.97

starling-discuss link:
http://lists.starlingx.io/pipermail/starlingx-discuss/2018-December/002110.html

Current qemu-kvm version in my setup:
qemu-img version 2.10.0(qemu-kvm-ev-2.10.0-0.tis.0)

Please let me know how can i upgrade qemu-kvm package in my compute without disturbing much running setup.

Many Thanks,
Himanshu Goyal




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20190326/733e5893/attachment-0001.html>


More information about the Starlingx-discuss mailing list