Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
100 user(s) are online (43 user(s) are browsing Forums)

Members: 0
Guests: 100

more...

Support us!

Headlines

 
  Register To Post  

« 1 (2)
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Quite a regular
Quite a regular


See User information
@kas1e
It works as if you added a SCSI controller to Amiga.
It works on disk images. It has nothing to do with sharing resources between guest and host in QEMU.
You will not share resources.

@derfs
I checked it on AmigaOne and it works. Thank you :- )
Out of curiosity, I also checked it on sam460 - it does not work here.
You wrote about peg2 and A1 in the requirements, so it does not have to work.

Thanks again.

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Not too shy to talk
Not too shy to talk


See User information
@smarkusg

looks like it doesnt play nice with diskcache.library.kmod, so as a temp workaround it should work for now on sam460 if that is commented out.

this is using -device virtio-scsi-pci.... device and not the 'non-transitional' device.

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Not too shy to talk
Not too shy to talk


See User information
*edit*

That was quick! Its out of the upload queue - https://os4depot.net/?function=showfil ... er/handler/virtio9pfs.zip

@kas1e

I believe this (https://os4depot.net/download.php?file=queue/virtio9pfs.zip) is what you were after? Currently in the upload queue on os4depot.

Virtio9PFS-handler
==================

A FileSysBox-based handler for AmigaOS 4.1 FE that mounts QEMU host-shared
folders 
as DOS volumes via the VirtIO 9P (9P2000.Lprotocol.

StatusBeta -- tested on QEMU AmigaOne (legacy VirtIOonlyPegasos2
(modern VirtIOis implemented but not yet validated. Use at your own risk.

ImportantQEMU for Windows (x64does not currently support -virtfs.
You need a LinuxWSL2, or macOS QEMU build to use VirtIO 9P shared folders.


What It Does
------------

When running AmigaOS under QEMU with a -virtfs shared folderthis handler
presents the host directory 
as a native AmigaOS volume (e.gSHARED:). You
can browse
copycreaterename, and delete files on the host filesystem
directly from Workbench 
or the Shell.

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Home away from home
Home away from home


See User information
@derfs
Wowow! Not that fast ! AI surely help, but you soon will wrote per driver in a day :) Cool ! Will check this out.

Quote:

Important: QEMU for Windows (x64) does not currently support -virtfs.

Can't remember, but virtfs can't work on win at all as this part of qemu code is linux only, right ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Quite a regular
Quite a regular


See User information
@kas1e
If you use Windows, the solution is WSL2
https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Quite a regular
Quite a regular


See User information
@derfs
Thanks!
It works fine on macOS on A1.
Video test to see how it works





On Linux, I have peg2 and it doesn't work properly there.
Similarly, on peg2, I have problems with Virtio SCSI....

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Not too shy to talk
Not too shy to talk


See User information
@kas1e
Quote:

Can't remember, but virtfs can't work on win at all as this part of qemu code is linux only, right ?


Thats correct on Windows, but if you use the WSL2 subsystem on Windows then you can get it to work as its essentially linux.

P.S. virtfs is also available on macOS.

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Quite a regular
Quite a regular


See User information
@derfs
On QEMU Peg2 under Linux, the Virtio9PFS-handler works for me in this way.
-fsdev local,security_model=mapped,id=fsdev0,path=/home/markus/Muzyka -device virtio-9p-pci-non-transitional,id=fs0,fsdev=fsdev0,mount_tag=SHARED

Resized Image

Here is Virtio9PFS-handler and virtioscsi.device on Linux QEMU PEG2
*) The vtlspci command comes from a package by Falke, who is working on QEmu VirtualVGA Device.
Resized Image


Edited by smarkusg on 2026/3/4 13:02:56
Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Home away from home
Home away from home


See User information
@smarkusg
Still can't get myself to test, but is it works as expected? I.e. you can copy/modify/delete files in realtime from both os4 and from linux without restriction ? No size limitations of shared partition, and no speed issues ?

@derfs
Btw, you say you use claude ai, is it anyhow better than others ? I just used before grok and gpt, but for simple things like to fix some of code, or find for errors, but today tried claude ai (web version, just a chat window), and it write me quite good code from start (with usage of interfaces, correct allocvectags() instead of deprecated allocvec() , for grok and gpt i had to explain it before). Probably you use it from some IDE where you point on the SDK, and claude make a code based on the SDK examples ? Because i see your AmiBench tool quite rich on reaction stuff (buttons and co) and looks pretty correct .. (while grok and gpt wrote pretty sucky reaction code by default).

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Not too shy to talk
Not too shy to talk


See User information
@kas1e

Each AI agent has its positives and negatives, but I have found with Claude (especially the new Opus 4.6) that it is easier to train it with the correct way to make a program for AmigaOS4. Especially libraries and devices.

Even with this, it is still mostly about the initial prompt you give the AI agent, as it needs to cover all the points you want it to hit, and make it create documentation recording what it has done and what its going to do.

I use VScode with the Claude plugin, but the people that pay for the highest level use the Claude API directly otherwise they would never use up their allotted quota.

What you don't see is the last few months of testing and trying things out to get the Claude 'memory' to a point where it has learned a lot of things and I don't need to teach it from nothing every time.

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Home away from home
Home away from home


See User information
@derfs
Quote:

What you don't see is the last few months of testing and trying things out to get the Claude 'memory' to a point where it has learned a lot of things and I don't need to teach it from nothing every time


With grok it was the same just only exception that i had always to repeat the same and the same because sessions is small, context window is small, and once it start to get how to do os4 code, memory of context end, it start act, and you start from begining, so i end up with just some small tasks which fits well into.

It's still quite cool how far ai come today. It's of course not autopilot, but helps very much, especially if you can code, and stuck sometime on something which crash your head.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Quite a regular
Quite a regular


See User information
@kas1e
Quote:
Still can't get myself to test, but is it works as expected? I.e. you can copy/modify/delete files in realtime from both os4 and from linux without restriction ? No size limitations of shared partition, and no speed issues ?

Yes, it works quickly. You can easily copy/modify/delete files on both systems and it will be visible immediately. There are no space limitations. The only limitation is the disk capacity on your computer/host.
I recorded a video for you because maybe the last one was not clear enough. “SHARED” is my folder on MacOS $HOME/Dowload.
I no longer use “-drive file=fat” under QEMU AOS4 - it was terribly outdated and had a lot of limitations.
video - > https://youtu.be/kfIYRTeHaOc

If you need any other information, let me know.
ps
The command line for Linux and PEG2 for Virtio9PFS-handler also works on macOS.

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Quite a regular
Quite a regular


See User information
@derfs
Quote:
What you don't see is the last few months of testing and trying things out to get the Claude 'memory' to a point where it has learned a lot of things and I don't need to teach it from nothing every time.


Very interesting... I once wrote my opinion on AI. Do you profile your knowledge to AI only for yourself or for others (paid versions and for corporations - any provisions in the license agreement)?
I'm just asking out of curiosity

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Home away from home
Home away from home


See User information
@smarkusg
Quote:
Oh damn, that seriously cool ! No more fat sticks and reboots anymore then, will try to make it work on wsl2 now and if it will, then yeah! Just hope running qemu over wsl2 will not hit some performance issues in compare with win32 native..

Edit: build latest qemu on wsl2 just to see that it slower than running native win32 version (be it gtk or sdl with and without gl). Boot times slower on 10-15% in whole, rendering on 30% or so.. so for real work with p9 share wsl2 no go. But then idea to just run p9 server on wsl2 and run win32 version of qemu with proxy on. Or simple create win32 p9 server and then no wsl2 need it. Yes of course no chmod/inode/etc posix funcs on win, but simple replace/emulate will be fine.. i read there some win32 patches flying around adding win32 support for p9, but need to check this all out


Edited by kas1e on 2026/3/5 9:50:15
Edited by kas1e on 2026/3/5 12:08:49
Edited by kas1e on 2026/3/5 12:11:23
Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Home away from home
Home away from home


See User information
@derfs
Btw, now as you can made those devices/libraries/handlers now, and i see on your github you made some https://github.com/derfsss/AmigaBlockDevLibrary, is it possible (if i may ask for), to create our opensource version of the virtuo.library instead of that one from AEON, so we can then make on top of that some network driver which will works fine without needs to use those rtl ones which cause issues ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Quite a regular
Quite a regular


See User information
I don't know anything about these virtio devices but what is with the compatibility with different machines and new and old virtio? These should work the same on all machines. I guess this may be because these drivers (as most AmigaOS drivers) do nothing to configure the device and different firmwares configure it differently so if you just try to use it that way it may not work. I guess the driver should set up the device the way it needs (likely current virtio with memory mapped BAR) and not rely on the firmware to do it.

Go to top
Re: Virtio SCSI driver for AmigaOS4.1FE on QEMU
Just can't stay away
Just can't stay away


See User information
@derfs

Quote:
derfs wrote:@kas1e
What you don't see is the last few months of testing and trying things out to get the Claude 'memory' to a point where it has learned a lot of things and I don't need to teach it from nothing every time.


I completely agree that developing/porting is not the problem, but all the debugging and testing takes up most of the time. I am currently facing exactly the same problem. And yes, it is essential to have documentation created so that you don't have to start from scratch every time.

Thanks for the Virtio stuff. I still have to test Virtio9PFS and unfortunately haven't gotten around to it yet.

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top

  Register To Post
« 1 (2)

 




Currently Active Users Viewing This Thread: 2 ( 0 members and 2 Anonymous Users )



Polls
Running AmigaOS 4 on?
AmigaOne SE/XE or microA1 12% (26)
Pegasos2 3% (8)
X5000 22% (48)
X1000 14% (30)
A1222 8% (19)
Sam 440/460 18% (40)
Classic PowerPC Amiga 2% (6)
WinUAE emulation 7% (16)
Qemu emulation 9% (21)
Total Votes: 214
The poll closed at 2025/12/1 12:00
8 Comments


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project