Bug 1879200 - libvirt should invalidate QEMU capabilities cache when kvm module parameters change
Summary: libvirt should invalidate QEMU capabilities cache when kvm module parameters ...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: libvirt
Version: 9.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Jiri Denemark
QA Contact: Luyao Huang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-15 16:20 UTC by Jiri Denemark
Modified: 2023-08-07 07:50 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jiri Denemark 2020-09-15 16:20:11 UTC
Description of problem:

Removing kvm_intel model and inserting it back with different parameters can
influence QEMU capabilities, such as CPU features available on the host. For
example, changing nested or pt_mode parameters may change availability of vmx
or intel-pt features respectively. The nested parameter is already checked by
libvirt in virQEMUCapsKVMSupportsNesting and capabilities cache is properly
invalidated when the value of nested parameter changes. Changing pt_mode does
not invalidate the cache, though.

Version-Release number of selected component (if applicable):

libvirt-6.6.0-5

How reproducible:

always

Steps to Reproduce:
1. prepare an Icelake-Server host
2. virsh domcapabilities
3. modprobe -r kvm_intel
4. modprobe kvm_intel pt_mode=1
5. virsh domcapabilities

Actual results:

In step 2. the <mode name='host-model' supported='yes'> element will contain
Icelake-Server CPU model and intel-pt with policy='disable'.

In step 5. the output will be exactly the same as in step 2.

Expected results:

The intel-pt feature with policy='disable' should disappear from the <mode
name='host-model' supported='yes'> element. This means intel-pt can be
enabled, because libvirt consideres it a part of Icelake-Server CPU model.

Comment 2 John Ferlan 2021-09-08 13:31:40 UTC
Bulk update: Move RHEL-AV bugs to RHEL9. If necessary to resolve in RHEL8, then clone to the current RHEL8 release.


Note You need to log in before you can comment on or make changes to this bug.