X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Frtl8139.c;h=33a5cfa681a9a470b1de78f1313d6480e40b68f1;hb=b114cb5ecaeb5e330511684a1c8d56e23fb2f136;hp=0a1a33524dc63a05674e427b2a4c9023cab0a9c9;hpb=ad468ace3ffaac55719923219920d038b3be5844;p=palacios.git diff --git a/palacios/src/devices/rtl8139.c b/palacios/src/devices/rtl8139.c index 0a1a335..33a5cfa 100644 --- a/palacios/src/devices/rtl8139.c +++ b/palacios/src/devices/rtl8139.c @@ -1713,7 +1713,7 @@ static int register_dev(struct rtl8139_state * nic_state) { } bars[0].type = PCI_BAR_IO; - bars[0].default_base_port = 0xc100; + bars[0].default_base_port = -1; bars[0].num_ports = 0x100; bars[0].io_read = rtl8139_ioport_read; @@ -1774,7 +1774,8 @@ static int connect_fn(struct v3_vm_info * info, ops->recv = rtl8139_rx; ops->poll = NULL; - memcpy(ops->config.fnt_mac, nic_state->mac, ETH_ALEN); + ops->config.frontend_data = nic_state; + ops->config.fnt_mac = nic_state->mac; return 0; }