MorphOS runs on QEmu
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Intuition
    Posts: 1110 from 2013/5/24
    From: Nederland
    Quote:

    Spectre660 wrote:
    Anyone know if KVM on an X1000 would work ?.




    Not yet.
    1.67GHz 15" PowerBook G4, 1GB RAM, 128MB Radeon 9700M Pro, 64GB SSD, MorphOS 3.15

    2.7GHz DP G5, 4GB RAM, 512MB Radeon X1950 Pro, 500GB SSHD, MorphOS 3.9
  • »17.07.18 - 17:12
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Intuition
    Posts: 1110 from 2013/5/24
    From: Nederland
    Quote:

    koszer wrote:
    Quote:

    Intuition wrote:

    Call me stupid but which figure am I supposed to be looking at to compare it to this?

    http://sintonen.fi/pics/lame_benchmark.png


    I guess it's encoding time in seconds. Efika does the job in 2 minutes and 20 seconds (140 s). PowerMac G5 2,7 GHz encodes this wav in 8 seconds. Now for the screenshot you posted the situation is interesting. The real time differs from estimated by a very high margin (and on a real machine - it's never this way, as the "real" equals to "estimated" ultimately). I guess something isn't right with the timer under emulation. I'd probably go for the ETA number and a stopwatch just to be sure.


    It took around a minute roughly.

    Will run it again to make sure and on much faster hardware too.
    1.67GHz 15" PowerBook G4, 1GB RAM, 128MB Radeon 9700M Pro, 64GB SSD, MorphOS 3.15

    2.7GHz DP G5, 4GB RAM, 512MB Radeon X1950 Pro, 500GB SSHD, MorphOS 3.9
  • »17.07.18 - 17:14
    Profile
  • Jim
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Jim
    Posts: 4977 from 2009/1/28
    From: Delaware, USA
    Quote:

    jacadcaps wrote:
    Quote:

    Intuition wrote:
    virtgpu support will eventually come and it'll pass through a Radeon card that will appear on the pci bus to MorphOS and use it's native drivers.



    That won't help with a buggy and slow CPU emulation though.


    Yet another reason not to emulate the cpu, Jacek.
    Power 9...not X64, that would take care of that issue. ;-)

    Repetitive, I know, and very few have those systems, but it would run legacy PPC code.
    "Never attribute to malice what can more readily explained by incompetence"
  • »17.07.18 - 20:59
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12074 from 2003/5/22
    From: Germany
    >>> I'd be willing to bet that this could be done better on Power9.

    >> QEMU-KVM doesn't work as yet so no running this on any PPC
    >> or Power9 without emulating it same as on x64 for now.

    > Power 9...not X64, that would take care of that issue. ;-)
    > [...] it would run legacy PPC code.

    Would? Does? Will? I'm confused :-)
  • »17.07.18 - 22:02
    Profile
  • Jim
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Jim
    Posts: 4977 from 2009/1/28
    From: Delaware, USA
    Quote:

    Andreas_Wolf wrote:
    >>> I'd be willing to bet that this could be done better on Power9.

    >> QEMU-KVM doesn't work as yet so no running this on any PPC
    >> or Power9 without emulating it same as on x64 for now.

    > Power 9...not X64, that would take care of that issue. ;-)
    > [...] it would run legacy PPC code.

    Would? Does? Will? I'm confused :-)


    Again, not just yet. But soon KVM should be a possible option.
    Interesting that I'd never considered the X1000, but that could serve as well.

    What about the final G5s? I know the 970FX doesn't have a hypervisor (apparently disabled from the Power 4 subset it was taken from), but QEMU-KVM already appears to be working on these.

    BTW - The low performance of PPC emulation on X64 doesn't surprise my, Mark told me it was borderline months ago and he wasn't sure if PPC emulation would make it into NG. Apparently primarily due to an issue related to available resources.

    The question becomes what do we want to do with emulation, because it won't be supported outside MorphOS.
    Then again, Nik's results are pretty remarkable, so maybe this is something the community can do on its own.
    "Never attribute to malice what can more readily explained by incompetence"
  • »18.07.18 - 00:46
    Profile
  • Butterfly
    Butterfly
    Posts: 80 from 2017/9/10
    KVM will work for sure for Morphos vmachine and better than emulated one because the emulated cpu use emulated altivec instruction thing that for my experience is not good working because make in idle the vcpu.

    for use the morphos in kvm do just sudo modprobe kvm and add --enable-kvm on Qemu command line.

    I dint have time to test myself because i dont have a monitor attached on my g5 quad, this days summer make this machine unusable because add more celsious in the home that is warm in the summer period (two days ago was 42° external and 30° in the home)

    PS: X1000 and G5,G4 are kvm compatible for Mac99 vhw
  • »18.07.18 - 07:53
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    pampers
    Posts: 1061 from 2009/2/26
    From: Tczew, Poland
    Can anyone post some quick tutorial how to run this on MacOS for lamers like me? ;)
    MorphOS 3.x
  • »20.07.18 - 13:30
    Profile Visit Website
  • Butterfly
    Butterfly
    Posts: 80 from 2017/9/10
    what version of macos do you have?
    in case you are speaking about an old leopard or tiger (PPC) qemu dont build any more on it.
    in case you are speaking about new x86_64 Osx . you need to install homebrew and start build there from source qemu (note you need to be little skilled about).
  • »20.07.18 - 15:43
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Intuition
    Posts: 1110 from 2013/5/24
    From: Nederland
    Quote:

    pampers wrote:
    Can anyone post some quick tutorial how to run this on MacOS for lamers like me? ;)


    Code:

    git clone https://github.com/qemu/qemu
    cd qemu
    ./configure
    make -j8
    make install
    qemu-img create -f qcow2 morphos.img 120G

    # Boot from CD with HDD attached
    qemu-system-ppc -machine mac99,via=pmu -m 1536 -vga none -device sm501 -hda morphos.img -boot d -prom-env 'boot-device=cd:,mac_ppc32boot.img' -bios openbios-qemu.elf -serial stdio -net nic,model=rtl8139 -net user -cdrom morphos-3.11.iso


    Install MorphOS using IWizard.

    Code:

    #Boot from HDD
    qemu-system-ppc -machine mac99,via=pmu -m 1536 -vga none -device sm501 -hda morphos.img -boot c -prom-env 'boot-device=hd:,boot.img' -bios openbios-qemu.elf -serial stdio -net nic,model=rtl8139 -net user
    1.67GHz 15" PowerBook G4, 1GB RAM, 128MB Radeon 9700M Pro, 64GB SSD, MorphOS 3.15

    2.7GHz DP G5, 4GB RAM, 512MB Radeon X1950 Pro, 500GB SSHD, MorphOS 3.9
  • »20.07.18 - 20:32
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    pampers
    Posts: 1061 from 2009/2/26
    From: Tczew, Poland
    Cheers guys, will try that later on. Where do I get open bios files?
    MorphOS 3.x
  • »21.07.18 - 09:39
    Profile Visit Website
  • Butterfly
    Butterfly
    waldiamiga
    Posts: 90 from 2007/7/25
    From: Krakow, Poland
    Quote:

    pampers wrote:
    Cheers guys, will try that later on. Where do I get open bios files?




    Here OpenBIOS.elf
    Good site - Amiga like OSes on QEMU

    MorphOS.pl
    PowerBook G4 1.67GHz|2GB DDR2|ATI Radeon 9700M 128MB|SSD 80GB|TFT 17"|MorphOS 3.1x
    Core i7 Notebook|WinUAE 3.x/AmigaOS4.1x & Icaros Desktop 2.x & QEmu 6.x.x
  • »21.07.18 - 10:03
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Intuition
    Posts: 1110 from 2013/5/24
    From: Nederland
    Heads up for everyone, I seem to be getting a lot of corruption when using a qcow2 image.

    Stuff copies and works fine but then after a reboot is corrupted.

    Gonna try using a raw image instead.

    edit:

    Same with a raw image. Hmmmm.

    [ Edited by Intuition 21.07.2018 - 13:26 ]
    1.67GHz 15" PowerBook G4, 1GB RAM, 128MB Radeon 9700M Pro, 64GB SSD, MorphOS 3.15

    2.7GHz DP G5, 4GB RAM, 512MB Radeon X1950 Pro, 500GB SSHD, MorphOS 3.9
  • »21.07.18 - 12:46
    Profile
  • Butterfly
    Butterfly
    Posts: 80 from 2017/9/10
    Quote:

    pampers wrote:
    Cheers guys, will try that later on. Where do I get open bios files?


    use max 10GB img and use raw format
  • »21.07.18 - 14:47
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Intuition
    Posts: 1110 from 2013/5/24
    From: Nederland
    Quote:

    tlosmx wrote:
    Quote:

    pampers wrote:
    Cheers guys, will try that later on. Where do I get open bios files?


    use max 10GB img and use raw format


    Even a 10GB image gives random corruption.
    1.67GHz 15" PowerBook G4, 1GB RAM, 128MB Radeon 9700M Pro, 64GB SSD, MorphOS 3.15

    2.7GHz DP G5, 4GB RAM, 512MB Radeon X1950 Pro, 500GB SSHD, MorphOS 3.9
  • »21.07.18 - 22:51
    Profile
  • Butterfly
    Butterfly
    Posts: 80 from 2017/9/10
    strange i dont have this issues
  • »22.07.18 - 14:23
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Spectre660
    Posts: 275 from 2015/6/30
    Floating point performance at 18% ? .
    eh hem .
    At least with regards tpo AmigaOS 4.1 Tabor looks to be a better option at this point.


    [ Edited by Spectre660 23.07.2018 - 10:10 ]
  • »23.07.18 - 14:10
    Profile
  • ASiegel
    Posts: 1370 from 2003/2/15
    From: Central Europe
    Quote:

    Spectre660 wrote:
    Floating point performance at 18% ? .
    eh hem .
    At least with regards tpo AmigaOS 4.1 Tabor looks to be a better option at this point.


    No offence but "qemu is even slower at FPU operations" is nothing to brag about.
  • »23.07.18 - 15:05
    Profile
  • Butterfly
    Butterfly
    Posts: 80 from 2017/9/10
    Just for info ...
    the qemu devs are working for have better fpu operations in qemu.
    One option can be have the fpu operations in another cpu thread and not in the same thread where all the machine is emulated.

    PS: The integer operations on my machine is more faster then a G4 1.67 Ghz it mean much more faster then a tabor one and i have only 31 threads more available for have 31 AmigaOs more at same time.

    [ Edited by tlosmx 23.07.2018 - 15:35 ]
  • »23.07.18 - 15:32
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Spectre660
    Posts: 275 from 2015/6/30
    Any practical application that you can think of for 31 AmigaOs's at a time ?
    Apart from maybe software development/debugging ?

    Also what happens with floating point performance under KVM ?

    Look at it from the point of view that AmigaOS 4.1 and MorphOS 3.xx still perform well on real Sam460's and X5000's as well as MorphOS on the other supported hardware .
    Also Improvements in video performance are done (But not yet released) for AmigaOS 4.1 for the Sam460 and X5000 and likely to come for MorphOS. I expect AmigaOS on Tabor to squeeze out the maximum possible video performance too over time.
  • »23.07.18 - 19:52
    Profile
  • Butterfly
    Butterfly
    waldiamiga
    Posts: 90 from 2007/7/25
    From: Krakow, Poland
    Someone will help, the system has been able to be installed now to boot from the disk.

    Code:
    qemu-system-ppc -machine mac99,via=pmu -m 1024 -device sm501  -boot d -prom-env "boot-device=hd:,mac_ppc32boot.img" -bios openbios-qemu.elf -vga none -device ide-hd,drive=hd-drive,bus=ide.0 -drive file="morphos.img",if=none,id=hd-drive,format=raw -net nic,model=rtl8139 -net user

    MorphOS.pl
    PowerBook G4 1.67GHz|2GB DDR2|ATI Radeon 9700M 128MB|SSD 80GB|TFT 17"|MorphOS 3.1x
    Core i7 Notebook|WinUAE 3.x/AmigaOS4.1x & Icaros Desktop 2.x & QEmu 6.x.x
  • »23.07.18 - 21:50
    Profile