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 671510 - virt-what fails to detect Citrix (upstream) Xen HVM with Viridian extensions
Summary: virt-what fails to detect Citrix (upstream) Xen HVM with Viridian extensions
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virt-what
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 7.0
Assignee: Richard W.M. Jones
QA Contact: YongkuiGuo
URL:
Whiteboard:
Depends On: 672211
Blocks: 1288337 1301891
TreeView+ depends on / blocked
 
Reported: 2011-01-21 18:04 UTC by Richard W.M. Jones
Modified: 2019-05-13 09:28 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-13 09:28:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Modified code to differentiate between XenServer and Hyper-V (1.50 KB, text/plain)
2012-04-25 15:02 UTC, Valentine Sinitsyn
no flags Details

Description Richard W.M. Jones 2011-01-21 18:04:40 UTC
Description of problem:

(This was reported in a private email by Ian Campbell)

<<
For HVM (32 or 64 bit) virt-what returns:
# virt-what                                                                     
hyperv
xen

I disabled the Xen Viridian extensions and it returns:
# virt-what                                                                     
xen
xen-hvm

Your cpuid helper should check every 0x100 from 0x40000000
and then it will find multiple signatures on Xen when
viridian compat is enabled.
>>

Ian goes on to point to this piece of code from xendetect:

        static inline uint32_t xen_cpuid_base(void)
        {
                uint32_t base, eax, ebx, ecx, edx;
                char signature[13];

                for (base = 0x40000000; base < 0x40010000; base += 0x100) {
                        cpuid(base, &eax, &ebx, &ecx, &edx);
                        *(uint32_t *)(signature + 0) = ebx;
                        *(uint32_t *)(signature + 4) = ecx;
                        *(uint32_t *)(signature + 8) = edx;
                        signature[12] = 0;

                        if (!strcmp("XenVMMXenVMM", signature) && ((eax - base)
>= 2))
                                return base;
                }                                                               

                return 0;
        }                                                                       


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

virt-what 1.7

How reproducible:

Always.

Steps to Reproduce:
1. Using upstream Xen, HVM with Viridian extensions turned on.
2. Run virt-what in the guest.
  
Actual results:

hyperv
xen

Expected results:

Something like:

xen
xen-hvm
xen-hyperv_compat

Additional info:

Comment 4 Richard W.M. Jones 2011-06-10 10:12:02 UTC
Need to find a Citrix Xen box.

Comment 5 Richard W.M. Jones 2011-08-11 11:40:18 UTC
Push this up to 6.3.  It's not a customer bug.

Comment 6 Richard W.M. Jones 2012-03-05 13:12:45 UTC
Push to 6.4, for the same reason as comment 5.

Comment 7 Valentine Sinitsyn 2012-04-25 15:01:17 UTC
(In reply to comment #2)
> Fixed upstream:
> http://git.annexia.org/?p=virt-what.git;a=commitdiff;h=300c5168ca007ed5fbd49189efbe66ae0dbd9ad1

The patch is not that simple; on our XenServer boxes, after running the code above, %eax (max_entries) will contain garbage and sanity check would fail.

I've modified the code a bit for our purposes; hope it would be useful for others as well.

Comment 8 Valentine Sinitsyn 2012-04-25 15:02:56 UTC
Created attachment 580182 [details]
Modified code to differentiate between XenServer and Hyper-V

Comment 10 RHEL Program Management 2012-07-10 08:08:23 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 11 RHEL Program Management 2012-07-11 02:02:20 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 12 RHEL Program Management 2012-09-07 05:28:56 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 14 Richard W.M. Jones 2013-12-10 15:46:56 UTC
Moving to RHEL 7.1 as we need to get a developer to
install a Citrix Xen box and test.

Comment 19 Richard W.M. Jones 2016-06-20 11:52:14 UTC
This package is on the ACL for RHEL 7.3 (yay!).  Unfortunately
we don't have a clear fix for this upstream.  So I will defer
this to RHEL 7.4 unless we have a clear plan to fix this upstream
and test the fix.

Comment 20 Richard W.M. Jones 2017-02-16 12:33:28 UTC
Moving to RHEL 7.5 for the same reasons as comment 19.

Comment 21 Richard W.M. Jones 2017-10-17 12:22:32 UTC
No fix upstream still, so moving to RHEL 7.6.

Comment 22 Richard W.M. Jones 2019-05-13 09:28:26 UTC
Looks like we're not going to fix this in RHEL 7, so I'm closing this.  If this is
an issue for anyone, please reopen the bug against RHEL 8.


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