public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* pci passthrough - VF reset at boot is dropping assigned MAC
@ 2011-04-25 16:28 David Ahern
  2011-04-25 16:37 ` Alex Williamson
  0 siblings, 1 reply; 11+ messages in thread
From: David Ahern @ 2011-04-25 16:28 UTC (permalink / raw)
  To: alex.williamson, KVM mailing list

Running qemu-kvm.git as of today (ffce28f, April 18, 2011) the virtual
function passed to the VM is losing its assigned mac address. That is,
prior to launching qemu-kvm, the following command is run to set the MAC
address:

ip link set dev eth2 vf 0 mac 02:12:34:56:79:20

Yet, when the VM boots the MAC address is random which is what happens
when the VF is reset. Looking through the commit logs between 0.13.0 --
the version in Fedora 14 -- and latest git I found the following:

commit d9488459ff2ab113293586c1c36b1679bb15deee
Author: Alex Williamson <alex.williamson@redhat.com>
Date:   Thu Mar 17 15:24:31 2011 -0600

    device-assignment: Reset device on system reset

    On system reset, we currently try to quiesce DMA by clearing the
    command register.  This assumes that nothing re-enables bus master
    support without first de-programming the device.  Use a bigger
    hammer to help the guest not shoot itself by issuing a function
    reset via sysfs on each system reset.

    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
    Acked-by: Chris Wright <chrisw@redhat.com>
    Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>


Is this the cause of the MAC address reset and is this behavior intended?

David

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-04-25 21:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-25 16:28 pci passthrough - VF reset at boot is dropping assigned MAC David Ahern
2011-04-25 16:37 ` Alex Williamson
2011-04-25 16:41   ` David Ahern
2011-04-25 17:30     ` Alex Williamson
2011-04-25 17:41       ` David Ahern
2011-04-25 18:04       ` David Ahern
2011-04-25 18:36         ` Alex Williamson
2011-04-25 19:12           ` David Ahern
2011-04-25 19:18             ` Alex Williamson
2011-04-25 20:29               ` David Ahern
2011-04-25 21:17                 ` David Ahern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox