qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Bug 1860575] [NEW] qemu64 CPU model is incorrect
@ 2020-01-22 15:38 The Lemon Man
  2020-01-22 15:58 ` [Bug 1860575] " Daniel Berrange
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: The Lemon Man @ 2020-01-22 15:38 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

At the moment the "qemu64" CPU is defined as follows:

```
        .vendor = CPUID_VENDOR_AMD,
        .family = 6,
        .model = 6,
        .stepping = 3,
```

According to Wikipedia [1] this means the CPU is defined as part of the
K7 family while the AMD64 ISA was only introduced with the K8 series!

This causes some software such as LLVM to notice the problem (32-bit cpu
with 64-bit capability reported in the cpuid flag) and produce various
error messages.

The simple solution would be to upgrade this definition to use the Sledgehammer
family (15) instead. 

[1] https://en.wikipedia.org/wiki/List_of_AMD_CPU_microarchitectures

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1860575

Title:
  qemu64 CPU model is incorrect

Status in QEMU:
  New

Bug description:
  At the moment the "qemu64" CPU is defined as follows:

  ```
          .vendor = CPUID_VENDOR_AMD,
          .family = 6,
          .model = 6,
          .stepping = 3,
  ```

  According to Wikipedia [1] this means the CPU is defined as part of the
  K7 family while the AMD64 ISA was only introduced with the K8 series!

  This causes some software such as LLVM to notice the problem (32-bit cpu
  with 64-bit capability reported in the cpuid flag) and produce various
  error messages.

  The simple solution would be to upgrade this definition to use the Sledgehammer
  family (15) instead. 

  [1] https://en.wikipedia.org/wiki/List_of_AMD_CPU_microarchitectures

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


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

* [Bug 1860575] Re: qemu64 CPU model is incorrect
  2020-01-22 15:38 [Bug 1860575] [NEW] qemu64 CPU model is incorrect The Lemon Man
@ 2020-01-22 15:58 ` Daniel Berrange
  2020-01-22 16:36 ` The Lemon Man
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Daniel Berrange @ 2020-01-22 15:58 UTC (permalink / raw)
  To: qemu-devel

Your analysis of the problem with family makes sense & we do have
mechanism to fix this in QEMU while keeping back compat for existing
deployments.

I'm curious as to the actual errors LLVM reports ?

FWIW, even though qemu64 is the default CPU, practically everyone would
be better off choosing one of the other CPU models explicitly to better
suit their desired use case. There is some guidance here
https://qemu.weilnetz.de/doc/qemu-doc.html#cpu_005fmodels

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1860575

Title:
  qemu64 CPU model is incorrect

Status in QEMU:
  New

Bug description:
  At the moment the "qemu64" CPU is defined as follows:

  ```
          .vendor = CPUID_VENDOR_AMD,
          .family = 6,
          .model = 6,
          .stepping = 3,
  ```

  According to Wikipedia [1] this means the CPU is defined as part of the
  K7 family while the AMD64 ISA was only introduced with the K8 series!

  This causes some software such as LLVM to notice the problem (32-bit cpu
  with 64-bit capability reported in the cpuid flag) and produce various
  error messages.

  The simple solution would be to upgrade this definition to use the Sledgehammer
  family (15) instead. 

  [1] https://en.wikipedia.org/wiki/List_of_AMD_CPU_microarchitectures

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


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

* [Bug 1860575] Re: qemu64 CPU model is incorrect
  2020-01-22 15:38 [Bug 1860575] [NEW] qemu64 CPU model is incorrect The Lemon Man
  2020-01-22 15:58 ` [Bug 1860575] " Daniel Berrange
@ 2020-01-22 16:36 ` The Lemon Man
  2021-05-02 18:25 ` Thomas Huth
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: The Lemon Man @ 2020-01-22 16:36 UTC (permalink / raw)
  To: qemu-devel

The error message is a rather cryptic "LLVM ERROR: 64-bit code requested on a subtarget
that doesn't support it!" as it knows Athlon CPUs don't support the AMD64 ISA.

I will relay the tip to the people managing the VMs, I guess this problem went unnoticed
for so long because there are not many `qemu64` users.

I'm available to test a patch whenever it becomes available, I didn't directly send one
because I was afraid of breaking the backward compatibility and some (many?) VMs.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1860575

Title:
  qemu64 CPU model is incorrect

Status in QEMU:
  New

Bug description:
  At the moment the "qemu64" CPU is defined as follows:

  ```
          .vendor = CPUID_VENDOR_AMD,
          .family = 6,
          .model = 6,
          .stepping = 3,
  ```

  According to Wikipedia [1] this means the CPU is defined as part of the
  K7 family while the AMD64 ISA was only introduced with the K8 series!

  This causes some software such as LLVM to notice the problem (32-bit cpu
  with 64-bit capability reported in the cpuid flag) and produce various
  error messages.

  The simple solution would be to upgrade this definition to use the Sledgehammer
  family (15) instead. 

  [1] https://en.wikipedia.org/wiki/List_of_AMD_CPU_microarchitectures

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


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

* [Bug 1860575] Re: qemu64 CPU model is incorrect
  2020-01-22 15:38 [Bug 1860575] [NEW] qemu64 CPU model is incorrect The Lemon Man
  2020-01-22 15:58 ` [Bug 1860575] " Daniel Berrange
  2020-01-22 16:36 ` The Lemon Man
@ 2021-05-02 18:25 ` Thomas Huth
  2021-05-02 18:46 ` The Lemon Man
  2021-05-06  8:58 ` Thomas Huth
  4 siblings, 0 replies; 6+ messages in thread
From: Thomas Huth @ 2021-05-02 18:25 UTC (permalink / raw)
  To: qemu-devel

The QEMU project is currently considering to move its bug tracking to
another system. For this we need to know which bugs are still valid
and which could be closed already. Thus we are setting older bugs to
"Incomplete" now.

If you still think this bug report here is valid, then please switch
the state back to "New" within the next 60 days, otherwise this report
will be marked as "Expired". Or please mark it as "Fix Released" if
the problem has been solved with a newer version of QEMU already.

Thank you and sorry for the inconvenience.


** Changed in: qemu
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1860575

Title:
  qemu64 CPU model is incorrect

Status in QEMU:
  Incomplete

Bug description:
  At the moment the "qemu64" CPU is defined as follows:

  ```
          .vendor = CPUID_VENDOR_AMD,
          .family = 6,
          .model = 6,
          .stepping = 3,
  ```

  According to Wikipedia [1] this means the CPU is defined as part of the
  K7 family while the AMD64 ISA was only introduced with the K8 series!

  This causes some software such as LLVM to notice the problem (32-bit cpu
  with 64-bit capability reported in the cpuid flag) and produce various
  error messages.

  The simple solution would be to upgrade this definition to use the Sledgehammer
  family (15) instead. 

  [1] https://en.wikipedia.org/wiki/List_of_AMD_CPU_microarchitectures

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


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

* [Bug 1860575] Re: qemu64 CPU model is incorrect
  2020-01-22 15:38 [Bug 1860575] [NEW] qemu64 CPU model is incorrect The Lemon Man
                   ` (2 preceding siblings ...)
  2021-05-02 18:25 ` Thomas Huth
@ 2021-05-02 18:46 ` The Lemon Man
  2021-05-06  8:58 ` Thomas Huth
  4 siblings, 0 replies; 6+ messages in thread
From: The Lemon Man @ 2021-05-02 18:46 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
       Status: Incomplete => New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1860575

Title:
  qemu64 CPU model is incorrect

Status in QEMU:
  New

Bug description:
  At the moment the "qemu64" CPU is defined as follows:

  ```
          .vendor = CPUID_VENDOR_AMD,
          .family = 6,
          .model = 6,
          .stepping = 3,
  ```

  According to Wikipedia [1] this means the CPU is defined as part of the
  K7 family while the AMD64 ISA was only introduced with the K8 series!

  This causes some software such as LLVM to notice the problem (32-bit cpu
  with 64-bit capability reported in the cpuid flag) and produce various
  error messages.

  The simple solution would be to upgrade this definition to use the Sledgehammer
  family (15) instead. 

  [1] https://en.wikipedia.org/wiki/List_of_AMD_CPU_microarchitectures

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


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

* [Bug 1860575] Re: qemu64 CPU model is incorrect
  2020-01-22 15:38 [Bug 1860575] [NEW] qemu64 CPU model is incorrect The Lemon Man
                   ` (3 preceding siblings ...)
  2021-05-02 18:46 ` The Lemon Man
@ 2021-05-06  8:58 ` Thomas Huth
  4 siblings, 0 replies; 6+ messages in thread
From: Thomas Huth @ 2021-05-06  8:58 UTC (permalink / raw)
  To: qemu-devel

This is an automated cleanup. This bug report has been moved to QEMU's
new bug tracker on gitlab.com and thus gets marked as 'expired' now.
Please continue with the discussion here:

 https://gitlab.com/qemu-project/qemu/-/issues/191


** Changed in: qemu
       Status: New => Expired

** Bug watch added: gitlab.com/qemu-project/qemu/-/issues #191
   https://gitlab.com/qemu-project/qemu/-/issues/191

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1860575

Title:
  qemu64 CPU model is incorrect

Status in QEMU:
  Expired

Bug description:
  At the moment the "qemu64" CPU is defined as follows:

  ```
          .vendor = CPUID_VENDOR_AMD,
          .family = 6,
          .model = 6,
          .stepping = 3,
  ```

  According to Wikipedia [1] this means the CPU is defined as part of the
  K7 family while the AMD64 ISA was only introduced with the K8 series!

  This causes some software such as LLVM to notice the problem (32-bit cpu
  with 64-bit capability reported in the cpuid flag) and produce various
  error messages.

  The simple solution would be to upgrade this definition to use the Sledgehammer
  family (15) instead. 

  [1] https://en.wikipedia.org/wiki/List_of_AMD_CPU_microarchitectures

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


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

end of thread, other threads:[~2021-05-06  9:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-22 15:38 [Bug 1860575] [NEW] qemu64 CPU model is incorrect The Lemon Man
2020-01-22 15:58 ` [Bug 1860575] " Daniel Berrange
2020-01-22 16:36 ` The Lemon Man
2021-05-02 18:25 ` Thomas Huth
2021-05-02 18:46 ` The Lemon Man
2021-05-06  8:58 ` Thomas Huth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).