ia64/xen-unstable

changeset 4050:4b51c55ba441

bitkeeper revision 1.1236.19.1 (422f3fd8BustMuUXTkjmPaBu2yss5Q)

Fix ctrl_iface recovery across suspend/resume.
Signed-off-by: ian@xensource.com
author iap10@freefall.cl.cam.ac.uk
date Wed Mar 09 18:26:32 2005 +0000 (2005-03-09)
parents 62ae1c72e905
children e61e2c666c53
files linux-2.6.10-xen-sparse/arch/xen/kernel/ctrl_if.c
line diff
     1.1 --- a/linux-2.6.10-xen-sparse/arch/xen/kernel/ctrl_if.c	Tue Mar 08 17:12:15 2005 +0000
     1.2 +++ b/linux-2.6.10-xen-sparse/arch/xen/kernel/ctrl_if.c	Wed Mar 09 18:26:32 2005 +0000
     1.3 @@ -481,6 +481,8 @@ void ctrl_if_suspend(void)
     1.4  
     1.5  void ctrl_if_resume(void)
     1.6  {
     1.7 +    control_if_t *ctrl_if = get_ctrl_if();
     1.8 +
     1.9      if ( xen_start_info.flags & SIF_INITDOMAIN )
    1.10      {
    1.11          /*
    1.12 @@ -501,8 +503,8 @@ void ctrl_if_resume(void)
    1.13      }
    1.14  
    1.15      /* Sync up with shared indexes. */
    1.16 -    RING_DROP_PENDING_RESPONSES(&ctrl_if_tx_ring);
    1.17 -    RING_DROP_PENDING_REQUESTS(&ctrl_if_rx_ring);
    1.18 +    FRONT_RING_ATTACH(&ctrl_if_tx_ring, &ctrl_if->tx_ring);
    1.19 +    BACK_RING_ATTACH(&ctrl_if_rx_ring, &ctrl_if->rx_ring);
    1.20  
    1.21      ctrl_if_evtchn = xen_start_info.domain_controller_evtchn;
    1.22      ctrl_if_irq    = bind_evtchn_to_irq(ctrl_if_evtchn);