diff -urpNX linux-2.6.32.7/Documentation/dontdiff linux-2.6.32.7/drivers/net/netconsole.c linux-2.6.32.7-xen-netconsole/drivers/net/netconsole.c --- linux-2.6.32.7/drivers/net/netconsole.c 2009-12-03 14:51:21.000000000 +1100 +++ linux-2.6.32.7-xen-netconsole/drivers/net/netconsole.c 2010-02-14 12:37:00.000000000 +1100 @@ -816,5 +816,13 @@ static void __exit cleanup_netconsole(vo } } +#ifndef CONFIG_MODULES +#ifdef CONFIG_XEN +late_initcall(init_netconsole); +#else module_init(init_netconsole); +#endif +#else +module_init(init_netconsole); +#endif module_exit(cleanup_netconsole); diff -urpNX linux-2.6.32.7/Documentation/dontdiff linux-2.6.32.7/drivers/net/xen-netfront.c linux-2.6.32.7-xen-netconsole/drivers/net/xen-netfront.c --- linux-2.6.32.7/drivers/net/xen-netfront.c 2009-12-03 14:51:21.000000000 +1100 +++ linux-2.6.32.7-xen-netconsole/drivers/net/xen-netfront.c 2010-02-14 12:58:22.000000000 +1100 @@ -989,6 +989,15 @@ err: return work_done; } +#ifdef CONFIG_NET_POLL_CONTROLLER +static void xennet_netpoll(struct net_device *dev) +{ + struct netfront_info *np = netdev_priv(dev); + + napi_schedule(&np->napi); +} +#endif + static int xennet_change_mtu(struct net_device *dev, int mtu) { int max = xennet_can_sg(dev) ? 65535 - ETH_HLEN : ETH_DATA_LEN; @@ -1113,6 +1122,9 @@ static const struct net_device_ops xenne .ndo_change_mtu = xennet_change_mtu, .ndo_set_mac_address = eth_mac_addr, .ndo_validate_addr = eth_validate_addr, +#ifdef CONFIG_NET_POLL_CONTROLLER + .ndo_poll_controller = xennet_netpoll, +#endif }; static struct net_device * __devinit xennet_create_dev(struct xenbus_device *dev)