Re: [Qemu-discuss] Support for X32 ABI in qemu-system-x86_64

2017-03-02 Thread Brett Neumeier
On Wed, Mar 1, 2017 at 11:59 AM, Vincenzo Romano <
vincenzo.rom...@notorand.it> wrote:

> Which CPU are you actually emulating?
>
> --
> Vincenzo Romano - NotOrAnd.IT
> Information Technologies
> --
> NON QVIETIS MARIBVS NAVTA PERITVS
>
> Il 01 mar 2017 18:53, "Peter Maydell"  ha
> scritto:
>
>> On 1 March 2017 at 17:36, Brett Neumeier  wrote:
>> > Hi,
>> >
>> > I'm trying to test out an x32-ABI userspace. When I boot the actual
>> computer
>> > using the target filesystem as the rootfs, it works fine; when I boot it
>> > using qemu-system-x86_64 (version 2.8.0), I get a kernel panic with
>> > "Requested init /sbin/init failed (error -8)."
>> >
>> > Does qemu support the x32 ABI for guest systems? Did I build it with the
>> > wrong options to get that to work? Any help anyone could offer would be
>> very
>> > much appreciated!
>>
>> x32 is an ABI, not a difference in the CPU. QEMU shouldn't
>> need any special support for it to work in system mode at all.
>> It's likely that something else is going wrong.
>>
>> thanks
>> -- PMM
>>
>>
​Thanks all for your helpful pointers and advice. I found the issue -- I
was telling q​emu to use the wrong kernel, it didn't have support for X32
compiled in. Oops!

All is working now.​

​Cheers,

Brett​

-- 
Brett Neumeier (bneume...@gmail.com)


Re: [Qemu-discuss] Support for X32 ABI in qemu-system-x86_64

2017-03-02 Thread Alberto Garcia
On Wed, Mar 01, 2017 at 11:36:36AM -0600, Brett Neumeier wrote:

> Does qemu support the x32 ABI for guest systems?

I confirm that qemu runs X32 guests just fine, I use a Debian X32
image myself that runs without problems using qemu-system-x86_64

Berto



Re: [Qemu-discuss] Support for X32 ABI in qemu-system-x86_64

2017-03-01 Thread Vincenzo Romano
Which CPU are you actually emulating?


--
Vincenzo Romano - NotOrAnd.IT
Information Technologies
--
NON QVIETIS MARIBVS NAVTA PERITVS

Il 01 mar 2017 18:53, "Peter Maydell"  ha scritto:

> On 1 March 2017 at 17:36, Brett Neumeier  wrote:
> > Hi,
> >
> > I'm trying to test out an x32-ABI userspace. When I boot the actual
> computer
> > using the target filesystem as the rootfs, it works fine; when I boot it
> > using qemu-system-x86_64 (version 2.8.0), I get a kernel panic with
> > "Requested init /sbin/init failed (error -8)."
> >
> > Does qemu support the x32 ABI for guest systems? Did I build it with the
> > wrong options to get that to work? Any help anyone could offer would be
> very
> > much appreciated!
>
> x32 is an ABI, not a difference in the CPU. QEMU shouldn't
> need any special support for it to work in system mode at all.
> It's likely that something else is going wrong.
>
> thanks
> -- PMM
>
>


Re: [Qemu-discuss] Support for X32 ABI in qemu-system-x86_64

2017-03-01 Thread Peter Maydell
On 1 March 2017 at 17:36, Brett Neumeier  wrote:
> Hi,
>
> I'm trying to test out an x32-ABI userspace. When I boot the actual computer
> using the target filesystem as the rootfs, it works fine; when I boot it
> using qemu-system-x86_64 (version 2.8.0), I get a kernel panic with
> "Requested init /sbin/init failed (error -8)."
>
> Does qemu support the x32 ABI for guest systems? Did I build it with the
> wrong options to get that to work? Any help anyone could offer would be very
> much appreciated!

x32 is an ABI, not a difference in the CPU. QEMU shouldn't
need any special support for it to work in system mode at all.
It's likely that something else is going wrong.

thanks
-- PMM