ArchiveOrangemail archive

Porting FreeBSD to the AMD64 platform


freebsd-amd64.freebsd.org
(List home) (Recent threads) (175 other FreeBSD lists)

Subscription Options

  • RSS or Atom: Read-only subscription using a browser or aggregator. This is the recommended way if you don't need to send messages to the list. You can learn more about feed syndication and clients here.
  • Conventional: All messages are delivered to your mail address, and you can reply. To subscribe, send an email to the list's subscribe address with "subscribe" in the subject line, or visit the list's homepage here.
  • Low traffic list: less than 3 messages per day
  • This list contains about 15,818 messages, beginning May 2003
  • 0 messages added yesterday
Report the Spam
This button sends a spam report to the moderator. Please use it sparingly. For other removal requests, read this.
Are you sure? yes no

amd64/175780: Crash on KVM boot due to xsave instruction issue

Ad
Kaloyan Ganchev 1359815145Sat, 02 Feb 2013 14:25:45 +0000 (UTC)
>Number:         175780
>Category:       amd64
>Synopsis:       Crash on KVM boot due to xsave instruction issue
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-amd64
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 02 13:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Kaloyan Ganchev
>Release:        9.1
>Organization:
>Environment:
>Description:When trying to boot FreeBSD 9.1 on kvm host  with the following command:

kvm -cpu core2duo,+xsave -enable-kvm -drive file=freebsd-9.1-qcow2.img -boot d -net nic -net user -nographic -vnc :0  -cdrom ./isos/FreeBSD-9.1-RELEASE-amd64-disc1.iso 

The kernel return the following error immediately after taking over from the loader:

panic: CPU0 does not support X87 or SSE : 0

If I do not expose the xsave cpu flag to the FreeBSD guest the virtual machine boot as expected.
This problem do not appear in 9.1 i386 and 9.0 amd64 releases.
Also I tried several other cpu models instead of the core2duo and it doesn't make a difference, if xsave is exposed to the guest, FreeBSD 9.1 amd64 fails to boot with the error above.
>How-To-Repeat:
kvm -cpu core2duo,+xsave -enable-kvm -drive file=freebsd-9.1-qcow2.img -boot d -net nic -net user -nographic -vnc :0  -cdrom ./isos/FreeBSD-9.1-RELEASE-amd64-disc1.iso>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
Konstantin Belousov 1359817176Sat, 02 Feb 2013 14:59:36 +0000 (UTC)
On Sat, Feb 02, 2013 at 01:04:14PM +0000, Kaloyan Ganchev wrote:
> When trying to boot FreeBSD 9.1 on kvm host  with the following command:
> 
> kvm -cpu core2duo,+xsave -enable-kvm -drive file=freebsd-9.1-qcow2.img -boot d -net nic -net user -nographic -vnc :0  -cdrom ./isos/FreeBSD-9.1-RELEASE-amd64-disc1.iso 
> 
> The kernel return the following error immediately after taking over from the loader:
> 
> panic: CPU0 does not support X87 or SSE : 0
> 
> If I do not expose the xsave cpu flag to the FreeBSD guest the virtual machine boot as expected.
> This problem do not appear in 9.1 i386 and 9.0 amd64 releases.This is a misconfigured hypervisor, or a bug in the hypervisor.

FreeBSD amd64 assumes that both X87 FPU and SSE2 are present for any
CPU capable of long mode. It is enforced by the Unix amd64 ABI.

Intel documentation states that CPUID leaf 0xd must report the presence of
FPU extensions, and since for the long mode capable CPU, SSE2 and X87 must
be present, we re-check the report. Aparently, the returned CPUID data
is wrong.> Also I tried several other cpu models instead of the core2duo and it doesn't make a difference, if xsave is exposed to the guest, FreeBSD 9.1 amd64 fails to boot with the error above.
> >How-To-Repeat:
> kvm -cpu core2duo,+xsave -enable-kvm -drive file=freebsd-9.1-qcow2.img -boot d -net nic -net user -nographic -vnc :0  -cdrom ./isos/FreeBSD-9.1-RELEASE-amd64-disc1.iso 
> >Fix:Talk to KVM developers.

i386 kernel does not support this feature, 9.0 did not have it yet.
Home | About | Privacy