Skip to contentSkip to conversation

NIC: Queue assignment to guest OS

DISCUSSION Kallol Biswas 2 participants 5 messages Apr 15, 2011 – Apr 19, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

I have a requirement to assign the transmit and receive queues of a NIC
card to different guest operating systems so that the guests can directly submit transmit requests to controller and receive packets from NIC controller without going through a middle layer. The NIC controller is not SRIOV capable and there are a few MSI-X vectors available.

What would be the best way to implement the requirement in Xen? I am new to Xen but have experience in a similar virtualization framework.

Any input or pointer to document will be appreciated.

Kallol

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

#1 lore raw
Quoted 7 lines · Kallol Biswas

Hi,

I have a requirement to assign the transmit and receive queues of a NIC
card to different guest operating systems so that the guests can directly submit transmit requests to controller and receive packets from NIC controller without going through a middle layer. The NIC controller is not SRIOV capable and there are a few MSI-X vectors available.

OK. So you want to "export" the rx and tx queue (where each queue is associated with an MSI-X) in the guest.

Quoted 5 lines

What would be the best way to implement the requirement in Xen? I am new to Xen but have experience in a similar virtualization framework.

How did you do this in other virtualization frameworks?

#2 lore raw

Unfortunately other frameworks are not open source, and we can not use the design and expose to all.

Quoted 19 lines · Konrad Rzeszutek Wilk
Quoted 7 lines · Kallol Biswas

Hi,

I have a requirement to assign the transmit and receive queues of a NIC
card to different guest operating systems so that the guests can directly submit transmit requests to controller and receive packets from NIC controller without going through a middle layer. The NIC controller is not SRIOV capable and there are a few MSI-X vectors available.

OK. So you want to "export" the rx and tx queue (where each queue is associated with an MSI-X) in the guest.

Quoted 5 lines

What would be the best way to implement the requirement in Xen? I am new to Xen but have experience in a similar virtualization framework.

How did you do this in other virtualization frameworks?

#3 lore raw
Quoted 1 line · Kallol Biswas

Unfortunately other frameworks are not open source, and we can not use the design and expose to all.

Please don't top post.

Quoted 18 lines · Konrad Rzeszutek Wilk
Quoted 16 lines · Kallol Biswas
Quoted 7 lines

Hi,

I have a requirement to assign the transmit and receive queues of a NIC
card to different guest operating systems so that the guests can directly submit transmit requests to controller and receive packets from NIC controller without going through a middle layer. The NIC controller is not SRIOV capable and there are a few MSI-X vectors available.

OK. So you want to "export" the rx and tx queue (where each queue is associated with an MSI-X) in the guest.

Quoted 3 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

What would be the best way to implement the requirement in Xen? I am new to Xen but have experience in a similar virtualization framework.

How did you do this in other virtualization frameworks?

I am still at loss here how you guys managed this without ripping the network driver of a NIC card and passed the MSI-X to a guest and the full PCI device to _all_ of them and managed to negotiate some form of locking.

#4 lore raw

If it is ok to modify host the network driver how should we do it in Xen? What modules/driver should be changed.
The idea is to avoid backend/frontend implementation, and give direct HW access to guest for maximum performance. There are certain issues with guests accessing HW directly, one of them is guest to guest communication, and another is VM migration.

Sorry again, legal agreement prevents us to disclose anything in previous implementation; we overcame these issues in a certain way. Xen NIC folks should be able to address the issues.

Quoted 2 lines
Quoted 2 lines

How did you do this in other virtualization frameworks?

I am still at loss here how you guys managed this without ripping the network
driver of a NIC card and passed the MSI-X to a guest and the full PCI device to _all_ of them and managed to negotiate some form of locking.

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