]> xenbits.xensource.com Git - people/pauldu/xenvif.git/commit
Don't restore settings from emulated device more than once
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 8 Sep 2016 10:09:17 +0000 (11:09 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Thu, 8 Sep 2016 10:09:17 +0000 (11:09 +0100)
commitfc5daab0685da13f3df5f63b2c7c81d9957a08d8
tree5af9cbedabc3e019c1b1f350d8a4bf0259c1a95d
parentbf92f4b7e6bc583b03bfcb80b449697af65c2652
Don't restore settings from emulated device more than once

If, for some reason, the VM boots with emulated networking then network
settings will be saved from the emulated network device. Then, when the
VM reboots with PV networking, those settings are restored to the PV
network device regardless of whether it was freshly installed or has
been around for some time.

This patch makes sure that settings are restored only to a freshly
installed PV device.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenvif/driver.c
src/xenvif/driver.h
src/xenvif/pdo.c
src/xenvif/settings.c
src/xenvif/settings.h