GSoC projects about AHCI and S3 Trio
Dear Qemu developers,
I am a university student from Hungary interested in contributing to Qemu through Google Summer of Code.
I am interested in emulation, and two projects from the ideas page in particular. One of them is AHCI emulation.
Can I kindly ask you what were the hardest points that made the project get a high difficulty rating, so that I
could determine whether to apply for it or not? At a first glance, I think that AHCI code from VirtualBox OSE
would be a good place to start. What do you think?
A quick search through the mailing list archives showed that the other topic, the S3 Trio, has been around for
some time now. DOSBox has support for it, and is open source, so I think we could build upon that.
Best regards,
Roland Elek
Hi Roland,
Quoted 7 lines · Roland Elek
Dear Qemu developers,
I am a university student from Hungary interested in contributing to Qemu through Google Summer of Code. I am interested in emulation, and two projects from the ideas page in particular. One of them is AHCI emulation. Can I kindly ask you what were the hardest points that made the project get a high difficulty rating, so that I could determine whether to apply for it or not? At a first glance, I think that AHCI code from VirtualBox OSE would be a good place to start. What do you think?
I looked at the AHCI code from vbox some time ago and deemed it unreadable. It's probably easier to go with the spec and implement it from there.
Nevertheless, if you're good at reading C++ that code might come in handy. Just don't expect to be able to take any of it over to Qemu :-). Coding styles between the two projects differ a lot.
The hard part is that it's a reasonably complex piece of hardware that needs to be emulated. The "high" ranking was basically to show people that we need someone with serious skills and eagerness to work on it :-). If you're a quick learner the skills part shouldn't be too hard. The eagerness and ambition part is the really important one.
Quoted 2 lines
A quick search through the mailing list archives showed that the other topic, the S3 Trio, has been around for some time now. DOSBox has support for it, and is open source, so I think we could build upon that.
Yep. On IRC there's also someone called "jai" who wanted to look into that as well. Mind to coordinate with him?
Alex
Hi,
Quoted 15 lines · Alexander Graf
Hi Roland,
Quoted 7 lines · Roland Elek
Dear Qemu developers,
I am a university student from Hungary interested in contributing to Qemu through Google Summer of Code. I am interested in emulation, and two projects from the ideas page in particular. One of them is AHCI emulation. Can I kindly ask you what were the hardest points that made the project get a high difficulty rating, so that I could determine whether to apply for it or not? At a first glance, I think that AHCI code from VirtualBox OSE would be a good place to start. What do you think?
I looked at the AHCI code from vbox some time ago and deemed it unreadable. It's probably easier to go with the spec and implement it from there.
Quoted 9 lines
Nevertheless, if you're good at reading C++ that code might come in handy. Just don't expect to be able to take any of it over to Qemu :-). Coding styles between the two projects differ a lot.
The hard part is that it's a reasonably complex piece of hardware that needs to be emulated. The "high" ranking was basically to show people that we need someone with serious skills and eagerness to work on it :-). If you're a quick learner the skills part shouldn't be too hard. The eagerness and ambition part is the really important one.
Quoted 2 lines
A quick search through the mailing list archives showed that the other topic, the S3 Trio, has been around for some time now. DOSBox has support for it, and is open source, so I think we could build upon that.
Yep. On IRC there's also someone called "jai" who wanted to look into that as well. Mind to coordinate with him?
I'm the one that proposed the S3 Trio/Virge idea.
The greatest thing about this card is that almost every operating system has or had a driver for it, and has also been used in non-x86 machines extensively.
If you need testing or getting information from a real working card (I have a couple of them, all for x86 unfortuneately) just mail me.
Regards,
Natalia Portillo
Quoted 13 lines
Hi Roland,
Quoted 9 lines · Roland Elek
Dear Qemu developers,
I am a university student from Hungary interested in contributing to Qemu through Google Summer of Code. I am interested in emulation, and two projects from the ideas page in particular. One of them is AHCI emulation. Can I kindly ask you what were the hardest points that made the project get a high difficulty rating, so that I could determine whether to apply for it or not? At a first glance, I think that AHCI code from VirtualBox OSE would be a good place to start. What do you think?
Quoted 2 lines
I looked at the AHCI code from vbox some time ago and deemed it unreadable.
It's probably easier to go with the spec and implement it from there.
I agree. IIRC the AHCI documentation is pretty good.
The main reason I implemented the LSI SCSI HBA rather than AHCI was because at the time the SCSI HBA had much wider OS support.
Paul
2010/3/30 Paul Brook <[email protected]>
Quoted 17 lines
Quoted 6 lines
Hi Roland,
Quoted 3 lines · Roland Elek
Dear Qemu developers,
I am a university student from Hungary interested in contributing to
Qemu
Quoted 5 lines
Quoted 5 lines
through Google Summer of Code. I am interested in emulation, and two projects from the ideas page in particular. One of them is AHCI emulation. Can I kindly ask you what were the hardest points that made the project get a high difficulty rating, so that I could determine whether to apply for it or not? At a first glance, I think that AHCI
code
Quoted 3 lines
Quoted 1 line
from VirtualBox OSE would be a good place to start. What do you think?
I looked at the AHCI code from vbox some time ago and deemed it
unreadable.
Quoted 9 lines
Quoted 1 line
It's probably easier to go with the spec and implement it from there.
I agree. IIRC the AHCI documentation is pretty good.
The main reason I implemented the LSI SCSI HBA rather than AHCI was because at
the time the SCSI HBA had much wider OS support.Paul
I'm almost convinced to try my hand at the AHCI project, thank you. :-) I will contact jai
soon about the S3 Trio. I'll also skim through the documentation so that I can set
reasonable goals in my timeline.
Quoted 2 lines
I will contact jai soon about the S3 Trio. I'll also skim through the documentation so that I can set reasonable goals in my timeline.
TBH I'm less convinced about the utility of emulating an S3 graphics card. You'd want to make sure you know what you're expecting from it. While it may have a bit wider OS support that the Cirrus Logic cards, it's still an extremely old card that AFAIK ceased production many years ago. In modern terms it also has extremely limited capabilities.
Even the 2D engine is likely to be tricky accelerate because. The framebuffer is exposed to the guest, so you have to accomodate the guest reading back the results.
Some models have rudimentary 3D acceleration, however in practice I doubt this is worth much. I did a bit of 3D graphics when these cards were common, and IIRC they're missing some common features (multitexturing, possibly even prespective correction) and [as real hardware] are generally slower than a good software renderer.
If you want useful 3D acceleration, then you pretty much have to go for a paravirtual interface. The interface exposed by real hardware is closely tied to the implementation, which makes it hard (and slow) to emulate. This has been discussed a few times before, and amounts to feeding OpenGL commands (or equivalents such as Gallium pipes) over a remote transport.
Paul