Skip to contentSkip to conversation

Split vga module

Qemu-devel Màrius Montón 3 participants 6 messages Jun 25, 2008

lore
Share & tools
lore
#0 lore raw

Hello all,

My question is how I can split VGA module in a different process from QEMU.

I need it in order to simulate a VGA module described in SystemC into QEMU (http://www.greensocs.com/en/projects/QEMUSystemC) where all SystemC stuff runs in other process than QEMU.

I look at the code, and vga code seems to be too merged with QEMU itself to be splitted.. but, there's any solution?

Thank you,

Màrius

Signature · 9 lines
Màrius Montón i Macián   [email protected] <mailto:[email protected]>  http://cephis.uab.es <http://www.mariusmonton.name>
Hardware Engineer
CEPHIS
Centre de Prototips i Solucions Hardware-Software
Dep. Microelectrònica i Sistemes Electrònics
ETSE - Universitat Autònoma de Barcelona (UAB) 	Phone: +34 935 813 534
Fax: +34 935 813 033
QC-2090D. ETSE. Campus UAB.
080193 Bellaterra
#1 lore raw
Quoted 8 lines · Màrius Montón

Hello all,

My question is how I can split VGA module in a different process from QEMU.

I need it in order to simulate a VGA module described in SystemC into QEMU (http://www.greensocs.com/en/projects/QEMUSystemC) where all SystemC stuff runs in other process than QEMU.

I look at the code, and vga code seems to be too merged with QEMU itself to be splitted.. but, there's any solution?

Interesting. You could try to catch all IO and MMIO towards VGA and redirect those to the other process with some kind of IPC. You must change the MMIO area registration, because now the VGA MMIO accesses are optimised so that no callbacks are involved.

#2 lore raw

Hello, and thank you for your quick answer,

the problem I see is not with the register access (this is done for other devices) but with the graphics side.
I don't understand how VGA device draws the screen, (I guess is done using SDL), and I think this part is too merged with QEMU itself. Is it true?

Màrius

Quoted 16 lines · Blue Swirl
Quoted 8 lines · Màrius Montón

Hello all,

My question is how I can split VGA module in a different process from QEMU.

I need it in order to simulate a VGA module described in SystemC into QEMU (http://www.greensocs.com/en/projects/QEMUSystemC) where all SystemC stuff runs in other process than QEMU.

I look at the code, and vga code seems to be too merged with QEMU itself to be splitted.. but, there's any solution?

Interesting. You could try to catch all IO and MMIO towards VGA and redirect those to the other process with some kind of IPC. You must change the MMIO area registration, because now the VGA MMIO accesses are optimised so that no callbacks are involved.

Signature · 9 lines
Màrius Montón i Macián   [email protected] <mailto:[email protected]>  http://cephis.uab.es <http://www.mariusmonton.name>
Hardware Engineer
CEPHIS
Centre de Prototips i Solucions Hardware-Software
Dep. Microelectrònica i Sistemes Electrònics
ETSE - Universitat Autònoma de Barcelona (UAB) 	Phone: +34 935 813 534
Fax: +34 935 813 033
QC-2090D. ETSE. Campus UAB.
080193 Bellaterra
#3 lore raw
Quoted 17 lines · Màrius Montón

Hello, and thank you for your quick answer,

the problem I see is not with the register access (this is done for other devices) but with the graphics side.
I don't understand how VGA device draws the screen, (I guess is done using SDL), and I think this part is too merged with QEMU itself. Is it true?

Màrius

Blue Swirl wrote:
On 6/25/08, Màrius Montón <[email protected]> wrote:

Hello all,

My question is how I can split VGA module in a different process from QEMU.

Quoted 8 lines

I need it in order to simulate a VGA module described in SystemC into QEMU (http://www.greensocs.com/en/projects/QEMUSystemC) where all SystemC stuff runs in other process than QEMU.

I look at the code, and vga code seems to be too merged with QEMU itself to be splitted.. but, there's any solution?

Interesting. You could try to catch all IO and MMIO towards VGA and
redirect those to the other process with some kind of IPC. You must change the MMIO area registration, because now the VGA MMIO accesses are optimised so that no callbacks are involved.

Well, the graphics side can be SDL, VNC or dummy. I wonder why would you want to handle that area, because from the emulated system point of view, your device would be between the screen and the VGA card.

#4 lore raw
Quoted 28 lines · Blue Swirl
Quoted 16 lines · Màrius Montón

Hello, and thank you for your quick answer,

the problem I see is not with the register access (this is done for other devices) but with the graphics side.
I don't understand how VGA device draws the screen, (I guess is done using SDL), and I think this part is too merged with QEMU itself. Is it true?

Màrius

Blue Swirl wrote:
On 6/25/08, Màrius Montón <[email protected]> wrote:

Hello all,

My question is how I can split VGA module in a different process from QEMU.

Quoted 9 lines

I need it in order to simulate a VGA module described in SystemC into QEMU (http://www.greensocs.com/en/projects/QEMUSystemC) where all SystemC stuff runs in other process than QEMU.

I look at the code, and vga code seems to be too merged with QEMU itself to be splitted.. but, there's any solution?

Interesting. You could try to catch all IO and MMIO towards VGA and
redirect those to the other process with some kind of IPC. You must change the MMIO area registration, because now the VGA MMIO accesses are optimised so that no callbacks are involved.

Quoted 4 lines

Well, the graphics side can be SDL, VNC or dummy. I wonder why would you want to handle that area, because from the emulated system point of view, your device would be between the screen and the VGA card.

In fact my idea is to replace the vga module with a new one, using SystemC stuff, and because this stuff is in a different process (communicated with qemu using sockets) I need to split VGA part (both emulated part and graphics part) from QEMU

Signature · 9 lines
Màrius Montón i Macián   [email protected] <mailto:[email protected]>  http://cephis.uab.es <http://www.mariusmonton.name>
Hardware Engineer
CEPHIS
Centre de Prototips i Solucions Hardware-Software
Dep. Microelectrònica i Sistemes Electrònics
ETSE - Universitat Autònoma de Barcelona (UAB) 	Phone: +34 935 813 534
Fax: +34 935 813 033
QC-2090D. ETSE. Campus UAB.
080193 Bellaterra
#5 lore raw
In reply to Màrius Montón

Hello,

Am 25.06.2008 um 18:35 schrieb Màrius Montón:

Quoted 5 lines

My question is how I can split VGA module in a different process from QEMU.

I need it in order to simulate a VGA module described in SystemC into QEMU (http://www.greensocs.com/en/projects/QEMUSystemC) where all SystemC stuff runs in other process than QEMU.

I look at the code, and vga code seems to be too merged with QEMU itself to be splitted.. but, there's any solution?

I believe the Q frontend is trying something similar for Q2, you might want to contact Mike Kronenberg for details on that.

Andreas