Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 161963 - app-emulation/qemu-softmmu-0.8.2 CPU won't run solaris guest with a 64 bit ABI
Summary: app-emulation/qemu-softmmu-0.8.2 CPU won't run solaris guest with a 64 bit ABI
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Luca Barbato
URL: http://www.opensolaris.org/os/project...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-13 22:16 UTC by Carlo Marcelo Arenas Belon
Modified: 2007-03-31 09:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch with the changes needed pulled from CVS (qemu-0.8.2-amd64_solaris.patch,4.80 KB, patch)
2007-01-13 22:21 UTC, Carlo Marcelo Arenas Belon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlo Marcelo Arenas Belon 2007-01-13 22:16:32 UTC
`qemu-system-x86_64 -no-kqemu` can be used to install and run [Open]Solaris host VMs but won't be recognised as a 64 bit CPU and therefore would have [Open]Solaris running only in 32 bit mode.

OpenSolaris uses a patched qemu to define and partially implement the missing PSE36 functionality that it is needed as shown by the linked URL

Reproducible: Always

Steps to Reproduce:
1. install an Nexenta (or any other OpenSolaris distribution or Solaris 10) by running: qemu-system-x86_64 -m 256 -hda nexenta-amd64.img -cdrom elatte_installcd_alpha6_i386.iso -boot d
2. run that VM by running: qemu-system-x86_64 -m 256 nexenta-amd64-img
3. boot into the VM (adding '-B atapi-cd-dma-enabled=0' to the kernel line in GRUB is recommended) and log into the system
Actual Results:  
after boot `isainfo -v` inside the VM will show that only a 32 bit ABI is available and no 64 bit kernel was installed.

Expected Results:  
`isainfo -v` should show that both a 64 bit and 32 bit ABIs are available, and by default `uname -a` should show we are running a 64 bit kernel.

upstream has a fix in CVS which is also used in the OpenSolaris patched qemu
Comment 1 Carlo Marcelo Arenas Belon 2007-01-13 22:21:08 UTC
Created attachment 106858 [details, diff]
patch with the changes needed pulled from CVS

Tested to install and run Solaris 10 x86 hosts
Comment 2 Carlo Marcelo Arenas Belon 2007-01-13 22:57:41 UTC
i meant running Solaris/OpenSolaris guests in gentoo, even though I wrote "Solaris host" of course
Comment 3 Carlo Marcelo Arenas Belon 2007-01-14 08:19:38 UTC
just to clarify:

the problem is a triggered because of a Solaris bug as seen in :

  http://bugs.opensolaris.org/view_bug.do?bug_id=6471548

the proposed patch is a workaround and will be released with qemu 0.8.3 but will be needed at least until that release goes stable.

a description of the logic behind the patch and from the point of view of a solaris host running a solaris guest can be seen in :

  http://www.opensolaris.org/jive/thread.jspa?threadID=14380&tstart=0
  
Comment 4 SpanKY gentoo-dev 2007-03-31 09:47:35 UTC
my guess is that Luca doesnt want to maintain this sort of thing ... better to get it merged upstream