]> xenbits.xen.org Git - xenclient/ioemu.git/commit
passthrough: Fix duplicated MAC addr when multi-port NIC assigned to HVM domain
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 31 Mar 2009 10:45:38 +0000 (11:45 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 31 Mar 2009 10:45:38 +0000 (11:45 +0100)
commitcc1a204423475ff7a918b11d78b9ae637f320e23
treebd36209b05049141e0a27e9e11ffe98920e3ffcd
parent239e32d920f35166147ae2e7ab3d61e34819fa0c
passthrough: Fix duplicated MAC addr when multi-port NIC assigned to HVM domain

This patch fixes duplicated MAC address when multi-port NIC is
assigned to HVM domain.

Currently multi-function device is shown as two single function
devices. e1000e driver and igb driver for linux add 1 to MAC address of
second port of multi-port NIC. But they don't add 1 to MAC address of
second port if NIC is single-function device. Because of this, the MAC
addresses of the first port and the second port are duplicated.

The patch make Header Type register passthrough-type. This means a
multi-function device is shown as two multi-function devices which
implement only one function. So e1000e driver and igb driver add 1 to
MAC address of second port.

When we use windows guest, the same issue occurs, the patch fix it.

Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
hw/pass-through.c