Hide Forgot
Description of problem: NDISTest 6.5 - [2 Machine] - AddressChange job failed on each of guest. Version-Release number of selected component (if applicable): Build 67 kernel-2.6.32-414.el6.x86_64 qemu-kvm-rhev-0.12.1.2-2.397.el6.x86_64 How reproducible: Always Steps to Reproduce: 1.boot up two guests and run the above jobs 2.submit the job to HCK 3. Actual results: The job always failed Expected results: The job can pass. Additional info: Will upload each guest cpks
Created attachment 792006 [details] 2008R2
Created attachment 792007 [details] 732
Created attachment 792011 [details] 764
Created attachment 792014 [details] 832
Created attachment 792016 [details] 864
Created attachment 792017 [details] 2012
QE test "Ethernet - NDISTest 6.5" job on WLK1.6, hit the same issue on win2k8-32/64. package version as comment #0
Created attachment 792740 [details] win2k8-32-netkvm-67-WLK
Hello, I cannot reproduce the issue with legacy mac address setting or with control queue mac address setting in my environment. Can you provide command line for QEMU (what's the default address that is set to adapter on both test VMs)? And please run DebugView http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx during the test on NDISTest client VM (run as administrator and enable Capture->Capture kernel option) and attach the log to BZ. Thanks, Yan.
Hi Yan, The job still failed on all the guests and provide CLI about win2012 guest. Guest 1- /usr/libexec/qemu-kvm -M rhel6.5.0 -m 6G -smp 8,cores=8 -cpu cpu64-rhel6,+x2apic -usb -device usb-tablet -drive file=win2012-nic1.raw,if=none,id=drive-ide0-0-0,werror=stop,rerror=stop,cache=none -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -netdev tap,sndbuf=0,id=hostnet0,vhost=on,script=/etc/qemu-ifup-private,downscript=no -device virtio-net-pci,netdev=hostnet0,mac=00:65:35:12:12:21,bus=pci.0,addr=0x4,id=virtio-net-pci0,ctrl_guest_offloads=on -netdev tap,sndbuf=0,id=hostnet2,script=/etc/qemu-ifup,downscript=no -device e1000,netdev=hostnet2,mac=00:43:2a:52:44:13,bus=pci.0,addr=0x6 -uuid 79b5111e-4064-4d83-aba7-bd904e014406 -no-kvm-pit-reinjection -chardev socket,id=111a,path=/tmp/monitor-win2012-nic1,server,nowait -mon chardev=111a,mode=readline -vnc :2 -vga cirrus -name win2012-nic1-69-HCK -rtc base=localtime,clock=host,driftfix=slew -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -monitor stdio Guest 2- /usr/libexec/qemu-kvm -M rhel6.5.0 -m 2G -smp 2,cores=2 -cpu cpu64-rhel6,+x2apic -usb -device usb-tablet -drive file=win2012-nic2.raw,if=none,id=drive-ide0-0-0,werror=stop,rerror=stop,cache=none -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -netdev tap,sndbuf=0,id=hostnet0,vhost=on,script=/etc/qemu-ifup-private,downscript=no -device virtio-net-pci,netdev=hostnet0,mac=00:45:25:42:32:21,bus=pci.0,addr=0x4,id=virtio-net-pci0,ctrl_guest_offloads=on -netdev tap,sndbuf=0,id=hostnet2,script=/etc/qemu-ifup,downscript=no -device e1000,netdev=hostnet2,mac=00:42:4a:52:24:33,bus=pci.0,addr=0x6 -uuid ab1b3a51-0720-4b41-963d-52275ea0fe5a -no-kvm-pit-reinjection -chardev socket,id=111a,path=/tmp/monitor-win2012-nic2,server,nowait -mon chardev=111a,mode=readline -vnc :3 -vga cirrus -name win2012-nic2-69-HCK -rtc base=localtime,clock=host,driftfix=slew -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -monitor stdio Besides,as soon as I got the DebugView log I will upload it to the bug,thanks. Best regards Min
Created attachment 796750 [details] CLI of win764
Created attachment 796751 [details] DebugView-log
According to Yan ,re-assign this bug to qemu-kvm conponent Missing commit from upstream: 41dc8a67c7dcecdf7ae1cd25db3c46f2b42a221f commit 41dc8a67c7dcecdf7ae1cd25db3c46f2b42a221f Author: Michael S. Tsirkin <mst> Date: Wed Jan 16 11:37:40 2013 +0200 virtio-net: revert mac on reset Once guest overrides virtio net primary mac, it retains the value set until qemu exit. This is inconsistent with standard nic behaviour. To fix, revert the mac to the original value on reset. Signed-off-by: Michael S. Tsirkin <mst> diff --git a/hw/virtio-net.c b/hw/virtio-net.c index 3bb01b1..4d80a25 100644 --- a/hw/virtio-net.c +++ b/hw/virtio-net.c @@ -199,6 +199,7 @@ static void virtio_net_reset(VirtIODevice *vdev) n->mac_table.multi_overflow = 0; n->mac_table.uni_overflow = 0; memset(n->mac_table.macs, 0, MAC_TABLE_ENTRIES * ETH_ALEN); + memcpy(&n->mac[0], &n->nic->conf->macaddr, sizeof(n->mac)); memset(n->vlans, 0, MAX_VLAN >> 3); }
Related: https://bugzilla.redhat.com/show_bug.cgi?id=890265
*** This bug has been marked as a duplicate of bug 890265 ***