Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'remotes/ehabkost/tags/x86-next-pull-req…
…uest' into staging x86 queue for -rc1 A few fixes that missed -rc0: * CPU model documentation updates (Daniel P. Berrangé) * Fix bogus OSPKE warnings (Eduardo Habkost) * Work around KVM bugs when handing arch_capabilities (Eduardo Habkost) # gpg: Signature made Thu 21 Mar 2019 19:32:02 GMT # gpg: using RSA key 2807936F984DC5A6 # gpg: Good signature from "Eduardo Habkost <ehabkost@redhat.com>" [full] # Primary key fingerprint: 5A32 2FD5 ABC4 D3DB ACCF D1AA 2807 936F 984D C5A6 * remotes/ehabkost/tags/x86-next-pull-request: docs: add note about stibp CPU feature for spectre v2 docs: clarify that spec-ctrl is only needed for Spectre v2 i386: Disable OSPKE on CPU model definitions i386: Make arch_capabilities migratable i386: kvm: Disable arch_capabilities if MSR can't be set Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
- Loading branch information
Showing
4 changed files
with
69 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Sanity check of query-cpu-* results | ||
# | ||
# Copyright (c) 2019 Red Hat, Inc. | ||
# | ||
# Author: | ||
# Eduardo Habkost <ehabkost@redhat.com> | ||
# | ||
# This work is licensed under the terms of the GNU GPL, version 2 or | ||
# later. See the COPYING file in the top-level directory. | ||
|
||
import logging | ||
|
||
from avocado_qemu import Test | ||
|
||
class QueryCPUModelExpansion(Test): | ||
""" | ||
Run query-cpu-model-expansion for each CPU model, and validate results | ||
""" | ||
|
||
def test(self): | ||
self.vm.set_machine('none') | ||
self.vm.add_args('-S') | ||
self.vm.launch() | ||
|
||
cpus = self.vm.command('query-cpu-definitions') | ||
for c in cpus: | ||
print(repr(c)) | ||
self.assertNotIn('', c['unavailable-features'], c['name']) | ||
|
||
for c in cpus: | ||
model = {'name': c['name']} | ||
e = self.vm.command('query-cpu-model-expansion', model=model, type='full') | ||
self.assertEquals(e['model']['name'], c['name']) |