Skip to contentSkip to conversation

Custom Hardware Acceleration

DISCUSSION Jad Naous 2 participants 5 messages Jan 26, 2006 – Jan 30, 2006 1 message not in the archive

lore
Share & tools
lore

Jad Naous

author
#0 lore raw

Hi all,
I am exploring the possibility of designing a custom hardware acceleration solution using an ASIC or an FPGA to accelerate some part of Xen. Basically, I am looking for some part of the code that could be built in hardware to make it faster. Does anybody know where I could get some statistics on the code, such as the most called functions, the most parallelizable functions, etc... If you could think of something that would be useful in HW I would be very interested to know. Thanks,
Jad.

#1 lore raw
Quoted 10 lines · Jad Naous

Hi all,
I am exploring the possibility of designing a custom hardware acceleration solution using an ASIC or an FPGA to accelerate some part of Xen. Basically, I am looking for some part of the code that could be built in hardware to make it faster. Does anybody know where I could get some statistics on the code, such as the most called functions, the most parallelizable functions, etc... If you could think of something that would be useful in HW I would be very interested to know. Thanks,
Jad.

You could make a custom NIC FPGA that can handle paravirtulized network receive. The NIC can inspect the destination MAC address of the incomming packet, and DMA it to a pre-alloced space in the domU (removing the need for the page flip). It will require modifing the xen network drivers, but should be pretty cool.

Thanks,
Jon

author
#5 lore raw
In reply to a message not in the archive

Yes, if I do end up doing it on an FPGA, it would be open-source. However, I'm also open to suggestions that don't necessarily end up on a separate (from the CPU) standalone ASIC/FPGA, but should be integrated into the CPU.

For example, are there any processor instructions (extensions) Xen developers would like to see in future processors? I'm doing research into either including reprogrammable hardware into a CPU (research oriented) or on a separate chip that is close to the CPU (implementation), which could then be configured according to the application running on it.

Returning to the example I mentioned, the instruction could then be implemented on the FPGA so that Xen could use it. Any ideas similar to this would also be very interesting. Of course, the instruction idea is only limited to on-chip reprogrammable logic, but the concept for an off-chip FPGA is similar, but limited in communication speed with the CPU.

Btw, sorry if this is not the appropriate place to post this. I'd be happy to move it somewhere else if I'm asked to, but I thought that this would be of interest to Xen developers.

Thanks,
Jad.

Quoted 18 lines · BSD Lazarus

Hello Jad,

Do you plan on an open-source FPGA design?

-- David

Quoted 11 lines · Jad Naous

Hi all,
I am exploring the possibility of designing a custom hardware acceleration solution using an ASIC or an FPGA to accelerate some part of Xen. Basically, I am looking for some part of the code that could be built in hardware to make it faster. Does anybody know where I could get some statistics on the code, such as the most called functions, the most parallelizable functions, etc... If you could think of something that would be useful in HW I would be very interested to know. Thanks,
Jad.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

author
#2 lore raw
In reply to Jon Mason
Quoted 6 lines · Jon Mason
Quoted 4 lines · Jad Naous

Hi all,
I am exploring the possibility of designing a custom hardware acceleration solution using an ASIC or an FPGA to accelerate some part of Xen. Basically, I am looking for some part of the code that could be built in hardware to make it faster. Does anybody know where I could get some statistics on the code, such as the most called functions, the most parallelizable functions, etc... If you could think of something that would be useful in HW I would be very interested to know. Thanks,
Jad.

Quoted 7 lines

You could make a custom NIC FPGA that can handle paravirtulized network
receive. The NIC can inspect the destination MAC address of the incomming packet, and DMA it to a pre-alloced space in the domU (removing the need for the page flip). It will require modifing the xen network drivers,
but should be pretty cool.

Thanks,
Jon

Just wanted to update that we are going to implement the paravirtualized NIC on an FPGA, and see if you guys can suggest where to start. We have never done any XEN development.
The implementation should be done by the end of March. Are there any suggestions on how to make our FPGA implementation as portable as possible to other boards? The problem is we might end up using some IP cores for our implementation. If we have time, we'd get rid of those. Thanks,
Jad.

#3 lore raw
Quoted 21 lines · Jad Naous
Quoted 18 lines · Jon Mason
Quoted 10 lines · Jad Naous

Hi all,
I am exploring the possibility of designing a custom hardware acceleration solution using an ASIC or an FPGA to accelerate some part of Xen. Basically, I am looking for some part of the code that could be built in hardware to make it faster. Does anybody know where I could get some statistics on the code, such as the most called functions, the most parallelizable functions, etc... If you could think of something that would be useful in HW I would be very interested to know. Thanks,
Jad.

You could make a custom NIC FPGA that can handle paravirtulized network receive. The NIC can inspect the destination MAC address of the incoming packet, and DMA it to a pre-alloced space in the domU (removing the need for the page flip). It will require modifying the xen network drivers, but should be pretty cool.

Quoted 6 lines
Quoted 2 lines

Thanks,
Jon

Just wanted to update that we are going to implement the paravirtulized NIC on an FPGA, and see if you guys can suggest where to start. We have never done any XEN development.

By "paravirtulized NIC", I assume you mean one that handles the network receive in hardware (or are there other features you are planning?).

If so, I would think you would need the following things:
specialized FPGA firmware
custom device driver for FPGA adapter
modified netfront driver (remove page flipping) modified netback driver

The specialized firmware should have some type of data structure which contains the MAC address and corresponding DMA address(es) for that domain. It should be able to parse the MAC header in the adapter cache and DMA to the corresponding address (without dropping any packets).

The custom device driver should me able to program the adapter with MAC addresses and DMA addresses (as well as perform generic networking device driver functionality).

The Xen network drivers (netfront and netback) will have to be modified to take advantage of this new feature.

I would think you would want to have the basic driver firmware working as your starting point, then modify it to add the MAC/DMA handling. Then, modify the xen networking drivers to take advantage.

Quoted 1 line

The implementation should be done by the end of March. Are there any

An extremely aggressive schedule. Let if there is anything I can do to help.

Quoted 5 lines

suggestions on how to make our FPGA implementation as portable as possible to other boards? The problem is we might end up using some IP cores for our implementation. If we have time, we'd get rid of those. Thanks,
Jad.

Helpfully all of this makes sense. If not, feel free to ask me to clarify.

Thanks,
Jon