RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1877467 - Provide simple boolean hyperv=on option with reasonable defaults
Summary: Provide simple boolean hyperv=on option with reasonable defaults
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: qemu-kvm
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: rc
: ---
Assignee: Vitaly Kuznetsov
QA Contact: menli@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 1624786 1888750
TreeView+ depends on / blocked
 
Reported: 2020-09-09 17:05 UTC by Eduardo Habkost
Modified: 2022-07-08 08:42 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-08 08:33:40 UTC
Type: Enhancement
Target Upstream Version: 6.0
Embargoed:


Attachments (Terms of Use)

Description Eduardo Habkost 2020-09-09 17:05:01 UTC
The set of available hyperv options depend on the host kernel, but this doesn't mean we can't provide a reasonable default set of hyperv features with a simple hyperv=on option.

The default set of hyperv features can depend on the machine type, so new upstream machine types can start enabling newer features, and downstream we can define the default set of hyperv features by just adding compat properties to the rhel machine types.

This way, we'll be able to provide a more reasonable interface for enabling hyperv features (just a boolean option) instead of the complex hyperv flag configuration interface we have today.

Comment 1 Eduardo Habkost 2020-10-15 16:49:00 UTC
Vitaly, do you think we can target this for 8.4, or 8.4 is too soon?

Comment 3 Vitaly Kuznetsov 2020-10-19 09:30:37 UTC
(In reply to Eduardo Habkost from comment #1)
> Vitaly, do you think we can target this for 8.4, or 8.4 is too soon?

This depends on whether Paolo will be able to queue the required KVM
patches for 5.10 (will ping again today), in case he will it will on
depend on QEMU acceptance of my '[PATCH RFC v3 00/23] i386: KVM: expand
Hyper-V features early' series. I have no feedback to address ATM so
assuming this means 'looks good' :-)

Comment 7 Yu Wang 2021-04-15 09:03:44 UTC
Hi Vitaly,

I saw a enlightenment called "hv-passthrough".
Is it the same as "hyperv=on" in this bug?


  201 4. Development features
  202 ========================
  203 In some cases (e.g. during development) it may make sense to use QEMU in
  204 'pass-through' mode and give Windows guests all enlightenments currently
  205 supported by KVM. This pass-through mode is enabled by "hv-passthrough" CPU
  206 flag.
  207 Note: enabling this flag effectively prevents migration as supported features
  208 may differ between target and destination.

If this hyperv=on/hyper-passthrogh is ready, how to test this function?


reference:
https://fossies.org/linux/qemu/docs/hyperv.txt

Comment 8 Vitaly Kuznetsov 2021-04-15 09:07:12 UTC
It is not the same as 'hv-passthrough' is not migratable. Instread of a 'default set'
it gives you everything supported by KVM. 'hyperv=on' is still in works upstream.

Comment 9 Yu Wang 2021-04-20 05:45:40 UTC
Hi Vitaly

(In reply to Vitaly Kuznetsov from comment #8)
> It is not the same as 'hv-passthrough' is not migratable. Instread of a
> 'default set'
> it gives you everything supported by KVM. 'hyperv=on' is still in works
> upstream.

OK, got it. Need we cover hv-passthough for our tests?
If yes, how to test this enlightenment? And should we add hv-passthrogh
for our regular tests(not hv enlightenment specific) like hv-time/hv-vapic?


Thanks
Yu Wang

Comment 10 Vitaly Kuznetsov 2021-04-20 09:19:58 UTC
'hv-passthrough' enables all other hyper-v enlightenments (supported
by KVM), there is no point in mixing it with individual features like
'hv-time'/'hv-vapic' (as it is a superset).

'hv-passthrough' is a developer/debug feature, it is not supported
by libvirt so users should not use it. I don't think it deserves 
dedicated testing efforts.

Comment 11 Yu Wang 2021-04-20 09:43:26 UTC
(In reply to Vitaly Kuznetsov from comment #10)
> 'hv-passthrough' enables all other hyper-v enlightenments (supported
> by KVM), there is no point in mixing it with individual features like
> 'hv-time'/'hv-vapic' (as it is a superset).
> 
> 'hv-passthrough' is a developer/debug feature, it is not supported
> by libvirt so users should not use it. I don't think it deserves 
> dedicated testing efforts.

OK, got it, thanks a lot!

Comment 14 John Ferlan 2021-09-09 13:37:07 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.