All of lore.kernel.org
 help / color / mirror / Atom feed
* TOPOEXT and CentOs 7 guests
@ 2019-10-16 12:51 Ani Sinha
  2019-10-16 13:37 ` Daniel P. Berrangé
  0 siblings, 1 reply; 4+ messages in thread
From: Ani Sinha @ 2019-10-16 12:51 UTC (permalink / raw)
  To: Qemu-Devel

Hi :

I am looking at a patch where we disable TOPOEXT when -cpu host or -cpu max is passed to qemu :

if (cpu->max_features) {
   for (w = 0; w < FEATURE_WORDS; w++) {
     /* Override only features that weren't set explicitly
      * by the user.
      */
      env->features[w] |=
      x86_cpu_get_supported_feature_word(w, cpu->migratable) &
         ~env->user_features[w] & \
         ~feature_word_info[w].no_autoenable_flags;
    }
}

https://lists.nongnu.org/archive/html/qemu-devel/2018-08/msg01641.html

We are using a setup where we pass “kvm64” as the cpu model along with other hypervisor CPIUD capabilities as detected by libvirt to a centOS 7.7 guest and the guest is unable to boot. We are using a AMD EPYC platform and we have traced it down to TOPOEXT flag being the offending CPUID from the host CPU which is causing the issue. Does it makes sense to not enable this flag by default on all other guest CPU models as well except for EPYC and EPTC-IBPB?

Just looking at the code very recently and thought I’d get an opinion from the wiser qemu community.

Thanks
Ani

^ permalink raw reply	[flat|nested] 4+ messages in thread
* TOPOEXT and CentOs 7 guests
@ 2019-10-16 12:48 Ani Sinha
  0 siblings, 0 replies; 4+ messages in thread
From: Ani Sinha @ 2019-10-16 12:48 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1117 bytes --]

Hi :

I am looking at a patch where we disable TOPOEXT when -cpu host or -cpu max is passed to qemu :

if (cpu->max_features) {
   for (w = 0; w < FEATURE_WORDS; w++) {
     /* Override only features that weren't set explicitly
      * by the user.
      */
      env->features[w] |=
      x86_cpu_get_supported_feature_word(w, cpu->migratable) &
         ~env->user_features[w] & \
         ~feature_word_info[w].no_autoenable_flags;
    }
}

https://lists.nongnu.org/archive/html/qemu-devel/2018-08/msg01641.html

We are using a setup where we pass “kvm64” as the cpu model along with other hypervisor CPIUD capabilities as detected by libvirt to a centOS 7.7 guest and the guest is unable to boot. We are using a AMD EPYC platform and we have traced it down to TOPOEXT flag being the offending CPUID from the host CPU which is causing the issue. Does it makes sense to not enable this flag by default on all other guest CPU models as well except for EPYC and EPTC-IBPB?

Just looking at the code very recently and thought I’d get an opinion from the wiser qemu community.

Thanks
Ani

[-- Attachment #2: Type: text/html, Size: 1910 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread
* TOPOEXT and CentOs 7 guests
@ 2019-10-16 11:05 Ani Sinha
  0 siblings, 0 replies; 4+ messages in thread
From: Ani Sinha @ 2019-10-16 11:05 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1121 bytes --]

Hi :

I am looking at a patch where we disable TOPOEXT when -cpu host or -cpu max is passed to qemu :

if (cpu->max_features) {
   for (w = 0; w < FEATURE_WORDS; w++) {
     /* Override only features that weren't set explicitly
      * by the user.
      */
      env->features[w] |=
      x86_cpu_get_supported_feature_word(w, cpu->migratable) &
         ~env->user_features[w] & \
         ~feature_word_info[w].no_autoenable_flags;
    }
}

https://lists.nongnu.org/archive/html/qemu-devel/2018-08/msg01641.html


We are using a setup where we pass “kvm64” as the cpu model along with other hypervisor CPIUD capabilities as detected by libvirt to a centOS 7.7 guest and the guest is unable to boot. We are using a AMD EPYC platform and we have traced it down to TOPOEXT flag being the offending CPUID from the host CPU which is causing the issue. Does it makes sense to not enable this flag by default on all other guest CPU models as well except for EPYC and EPTC-IBPB?

Just looking at the code very recently and thought I’d get an opinion from the wiser qemu community.

Thanks
Ani


[-- Attachment #2: Type: text/html, Size: 2130 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-10-16 13:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-16 12:51 TOPOEXT and CentOs 7 guests Ani Sinha
2019-10-16 13:37 ` Daniel P. Berrangé
  -- strict thread matches above, loose matches on Subject: below --
2019-10-16 12:48 Ani Sinha
2019-10-16 11:05 Ani Sinha

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.