aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2019-07-01 17:26:45 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2019-10-04 18:49:19 +0200
commit99e24dbdaa682c7b9d0bb5b463638c585bcee1c3 (patch)
treed28609c713ac43d1ffe11125e1396a8b1ee10b20 /docs
parent245edd0cfb1481b7a0398cce45df23db50f00034 (diff)
target/i386: introduce generic feature dependency mechanism
Sometimes a CPU feature does not make sense unless another is present. In the case of VMX features, KVM does not even allow setting the VMX controls to some invalid combinations. Therefore, this patch adds a generic mechanism that looks for bits that the user explicitly cleared, and uses them to remove other bits from the expanded CPU definition. If these dependent bits were also explicitly *set* by the user, this will be a warning for "-cpu check" and an error for "-cpu enforce". If not, then the dependent bits are cleared silently, for convenience. With VMX features, this will be used so that for example "-cpu host,-rdrand" will also hide support for RDRAND exiting. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions