MorphOS runs on QEmu
  • Butterfly
    Butterfly
    Georg
    Posts: 76 from 2004/4/7
    Quote:

    Piru wrote:
    Quote:

    The goal was to use kvm-pr mode and use powerpc at full speed.
    With a Sam460ex it was not possible due it's book3e cpu.


    You can configure arbitrary CPU while using QEmu. I often use 750cxe and 7448 when testing (this is in combination with -machine mac99). I don't know how kvm-pr works exactly but it'd be mighty silly if it would somehow restrict the emulated CPU type.



    There would not be any emulation of CPU as same (PowerPC) CPU which runs Qemu natively would run MorphOS natively (through Qemu). Like VirtualBox + co. in x86 world. Or AROS/hosted on Linux.
  • »28.08.21 - 07:26
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 11438 from 2003/5/22
    From: Germany
    > I don't know how kvm-pr works exactly but it'd be mighty
    > silly if it would somehow restrict the emulated CPU type.

    See comments #149 and #161. KVM is not about (slow) CPU emulation but about (fast) CPU virtualization. With Power(PC) on Power(PC), KVM-PR lets user mode instructions be run directly but emulates supervisor/privileged instructions, as explained here and there. However, this only works with Book III-S on Book III-S (called just 'Book III' in PowerPC ISA and again as of Power ISA v3.0+), not with Book III-S on Book III-E (called 'Book E' during PowerPC ISA era), not with Book III-E on Book III-S, and interestingly also not with Book III-E on Book III-E.

    > if the kvm-pr can't emulate a MorphOS compatible CPU it won't work.

    It can, see link in comment #174. The issue lies elsewhere.

    > Pegasos II machine emulation doesn't give you any better options regarding this. […]
    > I see no way how Pegasos II machine emulation would improve the situation there.

    See above.
  • »28.08.21 - 11:05
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    ppcamiga1
    Posts: 210 from 2015/8/23
    There is almost no money in Morphos.
    Made Morphos open source and let everbody use it as they want.
    kvm why not?
    proces under ppc linux why not?
    emulator why not?
  • »28.08.21 - 11:06
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 11438 from 2003/5/22
    From: Germany
    > There would not be any emulation of CPU as same (PowerPC) CPU
    > which runs Qemu natively would run MorphOS natively (through Qemu).

    This would be KVM-HV, which virtualizes as guest CPU the very same CPU as the host CPU. KVM-PR provides partly direct execution, partly emulation, depending on instruction privilege level.
  • »28.08.21 - 11:24
    Profile
  • Butterfly
    Butterfly
    Flash
    Posts: 75 from 2019/11/1
    Quote:

    Piru wrote:
    Granted, I don't use kvm-pr myself so I have no intimate knowledge about the limitations it poses. Yet, I see no way how Pegasos II machine emulation would improve the situation there.


    Pegasos II virtual machine was addressed mainly to run OS4 on PowerMacs in KVM mode.
    The whole project is a work in progress, I'll have to give some feedback to Zoltan to enable KVM.
  • »28.08.21 - 12:48
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 2487 from 2003/3/5
    From: Canada
    Quote:

    ppcamiga1 wrote:
    kvm why not?
    proces under ppc linux why not?
    emulator why not?



    Nobody stops you doing either of those.

    Quote:

    Made Morphos open source and let everbody use it as they want.


    My WebKit port is open source... nobody has even forked the repo so far. The people who would know what to do with those sources are already inside the MorphOS Team.
  • »28.08.21 - 14:27
    Profile Visit Website
  • MorphOS Developer
    Piru
    Posts: 500 from 2003/2/24
    From: finland, the l...
    I am well aware how KVM virtualization works in general. My point was that no amount of Pegasos II system emulation helps with whatever issues there are with it.
  • »28.08.21 - 17:37
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 11438 from 2003/5/22
    From: Germany
    > no amount of Pegasos II system emulation helps with whatever issues there are with it.

    Yes, but the basis to use QEMU for running MorphOS/OS4 on speedy POWER9 or OS4 on cheap G5 Macs, all without (full) CPU emulation, is now already there with the Pegasos II emulation, so that as soon as the issue that prevents running MorphOS or OS4 with KVM-PR is solved, the fun can begin for those inclined.

    Edit: some corrections

    [ Edited by Andreas_Wolf 29.08.2021 - 09:54 ]
  • »28.08.21 - 19:36
    Profile
  • MorphOS Developer
    Piru
    Posts: 500 from 2003/2/24
    From: finland, the l...
    Quote:

    Andreas_Wolf wrote:
    > no amount of Pegasos II system emulation helps with whatever issues there are with it.

    Yes, but the basis to use QEMU for running MorphOS/OS4 on speedy POWER9 or OS4 on cheap G5 Macs, all without (full) CPU emulation, is now already there with the Pegasos II emulation, so that as soon as the issue that prevents running MorphOS or OS4 with KVM-PR is solved, the fun can begin for those inclined.

    I still fail to see what this Pegasos II emulation brings to running MorphOS in QEmu. I see no benefits whatsoever over Mac99.

    If this is about some other OSes that's a completely different topic that I'm not interested in.
  • »29.08.21 - 01:19
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    ppcamiga1
    Posts: 210 from 2015/8/23
    Quote:

    The people who would know what to do with those sources are already inside the MorphOS Team.


    Maybee not.
    MOS Team loses nothing by made Morphos open source.
  • »29.08.21 - 07:12
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 11438 from 2003/5/22
    From: Germany
    > I still fail to see what this Pegasos II emulation brings to running MorphOS
    > in QEmu. I see no benefits whatsoever over Mac99. If this is about some
    > other OSes that's a completely different topic that I'm not interested in.

    Yes, you are right. The basis of running MorphOS with KVM-PR is already covered by the mac99 system emulation (but not by Sam460 emulation you mentioned in comment #162 and originally in comment #170, i.e. before you added Mac99 in an edit). So this is about an OS you're not interested in (as already said by Flash in comment #180).
  • »29.08.21 - 08:49
    Profile
  • Butterfly
    Butterfly
    Posts: 70 from 2019/4/6
    I was trying to recognize the "audio stick"
    I like to take tests :-)

    "the stick I use is regularly recognized by the real morphos hardware"

    I was wondering if this "poseidon" error is probably due to because I have not yet created a UDEV rule or is it possible to solve it within morphos?

    here is the log:
    13: 50: 01 | 0-poseidon.library: Welcome to poseidon 4.4 (15.3.18) © 2002-2018 by Chris Hodges (20090807)!
    13: 50: 01 | 0-poseidon.library: This is the PPC native MorphOS version.
    13: 50: 01 | 0-poseidon.library: Event broadcaster started.
    13: 50: 01 | 0-poseidon.library: Say hello to massstorage.class V4.9 (Supports storage devices via usbscsi.device (MOS)).
    13: 50: 01 | 0-poseidon.library: Whoah! hub.class V4.4 surprised as Root / external hub base class (MOS).
    13: 50: 01 | 0-poseidon.library: The door bell rang for hid.class V4.6 (Generic support for human interface devices (MOS)).
    13: 50: 01 | 0-poseidon.library: New hardware pciusb.device / 0 added (PCI OHCI USB 1.1 Host Controller (NEC)).
    13: 50: 01 | 0-poseidon.library: Root hub has been enumerated.

    13: 50: 01 | 20-poseidon.library: Opening pciusb.device unit 1 failed device / unit failed to open (-1).

    13: 50: 01 | 0-hub.class: Hub with 3 ports successfully configured.
    13: 50: 01 | 0-hub.class: I'm in love with hub 'PCI Root Hub Unit 0'.
    13: 50: 02 | 0-hub.class: Detected device 'QEMU USB Keyboard' at port 1. I like it.
    13: 50: 02 | 0-hub.class: Detected device 'QEMU USB Mouse' at port 2. I like it.
    13: 50: 02 | 0-hub.class: Detected device 'QEMU USB Hub' at port 3. I like it.
    13: 50: 02 | 0-hub.class: Hub has added 3 device (s). That'll be fun!
    13: 50: 02 | 0-hid.class: Using HID Descriptor from initial configuration run.
    13: 50: 02 | 0-hid.class: HID the road, 'QEMU USB Keyboard'!
    13: 50: 02 | 0-hid.class: Using HID Descriptor from initial configuration run.
    13: 50: 02 | 0-hid.class: HID the road, 'QEMU USB Mouse'!
    13: 50: 02 | 0-hub.class: Hub with 8 ports successfully configured.
    13: 50: 02 | 0-hub.class: I'm in love with hub 'QEMU USB Hub'.
    13: 50: 43 | 5-Trident: Forcing a DirScan for (new) classes, as you probably updated to a newer version.

    thanks for any suggestions :-)

    [ Edited by white 17.09.2021 - 22:17 ]
  • »17.09.21 - 21:09
    Profile