direct-io.hg

changeset 1434:833ef5f19355

bitkeeper revision 1.937 (40c0939elXhbQIKlWAMqL7ohYLPX6Q)

Undo temporary xend hack.
author kaf24@scramble.cl.cam.ac.uk
date Fri Jun 04 15:22:06 2004 +0000 (2004-06-04)
parents 2716b44c7f49
children 79da98e3f9aa
files tools/xend/lib/main.py
line diff
     1.1 --- a/tools/xend/lib/main.py	Fri Jun 04 15:20:17 2004 +0000
     1.2 +++ b/tools/xend/lib/main.py	Fri Jun 04 15:22:06 2004 +0000
     1.3 @@ -201,7 +201,7 @@ def daemon_loop():
     1.4                      xend.blkif.backend_rx_req(port, msg)
     1.5                  elif type == CMSG_NETIF_FE and net_if:
     1.6                      net_if.ctrlif_rx_req(port, msg)
     1.7 -                elif type == CMSG_NETIF_BE:
     1.8 +                elif type == CMSG_NETIF_BE and port == xend.netif.be_port:
     1.9                      xend.netif.backend_rx_req(port, msg)
    1.10                  else:
    1.11                      port.write_response(msg)
    1.12 @@ -213,7 +213,7 @@ def daemon_loop():
    1.13                  type = (msg.get_header())['type']
    1.14                  if type == CMSG_BLKIF_BE and port == dom0_port:
    1.15                      xend.blkif.backend_rx_rsp(port, msg)
    1.16 -                elif type == CMSG_NETIF_BE:
    1.17 +                elif type == CMSG_NETIF_BE and port == xend.netif.be_port:
    1.18                      xend.netif.backend_rx_rsp(port, msg)
    1.19  
    1.20              # Send console data.