Comment 5 for bug 1829760

Revision history for this message
Paul Lai (pclai) wrote : RE: [Bug 1829760] Re: [KVM][CLX] CPUID_7_0_EDX_ARCH_CAPABILITIES is not enabled in VM.

No reason not to dup. Did not find 1828495 before writing 1829760

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Dan Streetman
Sent: Tuesday, May 21, 2019 1:04 PM
To: Lai, Paul C <email address hidden>
Subject: [Bug 1829760] Re: [KVM][CLX] CPUID_7_0_EDX_ARCH_CAPABILITIES is not enabled in VM.

note bug 1828495...even the description appears taken from that bug. is there a reason this isn't a dup?

--
You received this bug notification because you are subscribed to the bug report.
https://bugs.launchpad.net/bugs/1829760

Title:
  [KVM][CLX] CPUID_7_0_EDX_ARCH_CAPABILITIES is not enabled in VM.

Status in qemu package in Ubuntu:
  New

Bug description:
  Description of problem:
  [KVM][CLX] CPUID_7_0_EDX_ARCH_CAPABILITIES is not enabled in VM.

  How reproducible:
  Upstream always, Ubuntu unknown.

  Steps to Reproduce:
  1. Boot up guest using: -cpu Cascadelake-Server

  [root@clx-2s2 yexin]# qemu-system-x86_64 -accel kvm -drive
  if=virtio,id=hd,file=/home/yexin/rhel7u6.qcow2,format=qcow2 -m 4096
  -smp 4 -cpu Cascadelake-Server -serial stdio

  char device redirected to /dev/pts/3 (label serial0)

  qemu-system-x86_64: warning: host doesn't support requested feature:
  CPUID.07H:ECX [bit 4]

  qemu-system-x86_64: warning: host doesn't support requested feature:
  CPUID.07H:ECX [bit 4]

  qemu-system-x86_64: warning: host doesn't support requested feature:
  CPUID.07H:ECX [bit 4]

  qemu-system-x86_64: warning: host doesn't support requested feature:
  CPUID.07H:ECX [bit 4]

  2. To check CPU ID related to features[FEAT_7_0_EDX]
  :CPUID_7_0_EDX_ARCH_CAPABILITIES

  Actual results:
  Host's cpuid: 0x00000007 0x00: eax=0x00000000 ebx=0xd39ffffb ecx=0x00000818 edx=0xbc000000 (EDX bit 29=1)

  Guest's cpuid : 0x00000007 0x00: eax=0x00000000 ebx=0xd19f0fb9
  ecx=0x00000818 edx=0x84000000 (EDX bit 29=0)

  Expected results:
  Both host and guest's CPUID.07H EDX bit 29 should be 1.

  Additional info:
  Upstream 5.0 fixed, commit:
  2bdb76c015df7125783d8394d6339d181cb5bc30

  Kernel:
  commit 2bdb76c015df7125783d8394d6339d181cb5bc30
  Author: Xiaoyao Li <email address hidden>
  Date: Fri Mar 8 15:57:20 2019 +0800
      kvm/x86: Move MSR_IA32_ARCH_CAPABILITIES to array emulated_msrs

  commit 0cf9135b773bf32fba9dd8e6699c1b331ee4b749
  Author: Sean Christopherson <email address hidden>
  Date: Thu Mar 7 15:43:02 2019 -0800

      KVM: x86: Emulate MSR_IA32_ARCH_CAPABILITIES on AMD hosts

  QEMU:

  commit 014018e19b3c54dd1bf5072bc912ceffea40abe8
  Author: Eduardo Habkost <email address hidden>
  Date: Fri Jan 25 20:06:06 2019 -0200
     i386: Make arch_capabilities migratable

  commit 485b1d256bcb0874bcde0223727c159b6837e6f8
  Author: Eduardo Habkost <email address hidden>
  Date: Fri Jan 25 20:06:05 2019 -0200
     i386: kvm: Disable arch_capabilities if MSR can't be set

  commit b0a1980384fc265d91de7e09aa5fe531a69e6288
  Author: Tao Xu <email address hidden>
  Date: Thu Dec 27 10:43:03 2018 +0800
     i386: Update stepping of Cascadelake-Server

  commit aec5e9c3a94cf8b7920f59bef69a6f426092c4a0
  Author: Bandan Das <email address hidden>
  Date: Sun Nov 25 23:17:28 2018 -0500
     kvm: Use KVM_GET_MSR_INDEX_LIST for MSR_IA32_ARCH_CAPABILITIES support

  commit 07585923485952bf4cb7da563c9f91fecc85d09c
  Author: Robert Hoo <email address hidden>
  Date: Mon Oct 15 12:47:24 2018 +0800
     x86: Data structure changes to support MSR based features

  commit f57bceb6ab5163ddd6c41ff4344ab8cf28a9c63d
  Author: Robert Hoo <email address hidden>
  Date: Mon Oct 15 12:47:23 2018 +0800
     kvm: Add support to KVM_GET_MSR_FEATURE_INDEX_LIST and KVM_GET_MSRS system ioctl

  commit d86f963694df27f11b3681ffd225c9362de1b634
  Author: Robert Hoo <email address hidden>
  Date: Mon Oct 15 12:47:25 2018 +0800
     x86: define a new MSR based feature word – FEATURE_WORDS_ARCH_CAPABILITIES

  commit c7a88b52f62b30c04158eeb07f73e3f72221b6a8
  Author: Tao Xu <email address hidden>
  Date: Wed Sep 19 11:11:22 2018 +0800
     i386: Add new model of Cascadelake-Server

  commit 3fc7c73139d2d38ae80c3b0bc963b1ac1555924c
  Author: Robert Hoo <email address hidden>
  Date: Thu Jul 5 17:09:55 2018 +0800
     i386: Add CPUID bit and feature words for IA32_ARCH_CAPABILITIES MSR

  commit 8a11c62da9146dd89aee98947e6bd831e65a970d
  Author: Robert Hoo <email address hidden>
  Date: Thu Jul 5 17:09:58 2018 +0800
     i386: Add new CPU model Icelake-{Server,Client}

  commit 8c80c99fcceabd0708a5a83f08577e778c9419f5
  Author: Robert Hoo <email address hidden>
  Date: Thu Jul 5 17:09:54 2018 +0800
     i386: Add new MSR indices for IA32_PRED_CMD and IA32_ARCH_CAPABILITIES

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1829760/+subscriptions