From: Anthony Liguori Date: Fri, 18 Dec 2009 19:58:56 +0000 (-0600) Subject: e1000: Don't muck with PCI commmand register X-Git-Tag: v0.12.0~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb41f58a4e971f630e37a1e10a25fa491e881430;p=thirdparty%2Fqemu.git e1000: Don't muck with PCI commmand register Otherwise, the driver does not work in Linux after the INT_DISABLE changes in PCI. Michael Tsirkin had a patch to do this, I'm not sure what happened to it. Signed-off-by: Anthony Liguori (cherry picked from commit 17a7a5c59c4d72dd1d5666f348b010be6b10163c) --- diff --git a/hw/e1000.c b/hw/e1000.c index 33c4bc61fdd..a0faf5ec810 100644 --- a/hw/e1000.c +++ b/hw/e1000.c @@ -1089,7 +1089,6 @@ static int pci_e1000_init(PCIDevice *pci_dev) pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL); pci_config_set_device_id(pci_conf, E1000_DEVID); - *(uint16_t *)(pci_conf+0x04) = cpu_to_le16(0x0407); *(uint16_t *)(pci_conf+0x06) = cpu_to_le16(0x0010); pci_conf[0x08] = 0x03; pci_config_set_class(pci_conf, PCI_CLASS_NETWORK_ETHERNET);