Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147980
b: refs/heads/master
c: ebf9a5a
h: refs/heads/master
v: v3
  • Loading branch information
Rusty Russell committed Jun 12, 2009
1 parent 9d68d80 commit 874fad8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a6c372de6e4b9a8188b66badcee3e3792eccdd26
refs/heads/master: ebf9a5a99c1a464afe0b4dfa64416fc8b273bc5c
8 changes: 1 addition & 7 deletions trunk/Documentation/lguest/lguest.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,6 @@ struct virtqueue
/* The routine to call when the Guest pings us, or timeout. */
void (*handle_output)(struct virtqueue *me, bool timeout);

/* Outstanding buffers */
unsigned int inflight;

/* Is this blocked awaiting a timer? */
bool blocked;
};
Expand Down Expand Up @@ -699,7 +696,6 @@ static unsigned get_vq_desc(struct virtqueue *vq,
errx(1, "Looped descriptor");
} while ((i = next_desc(vq, i)) != vq->vring.num);

vq->inflight++;
return head;
}

Expand All @@ -717,7 +713,6 @@ static void add_used(struct virtqueue *vq, unsigned int head, int len)
/* Make sure buffer is written before we update index. */
wmb();
vq->vring.used->idx++;
vq->inflight--;
}

/* This actually sends the interrupt for this virtqueue */
Expand All @@ -727,7 +722,7 @@ static void trigger_irq(struct virtqueue *vq)

/* If they don't want an interrupt, don't send one, unless empty. */
if ((vq->vring.avail->flags & VRING_AVAIL_F_NO_INTERRUPT)
&& vq->inflight)
&& lg_last_avail(vq) != vq->vring.avail->idx)
return;

/* Send the Guest an interrupt tell them we used something up. */
Expand Down Expand Up @@ -1171,7 +1166,6 @@ static void add_virtqueue(struct device *dev, unsigned int num_descs,
vq->next = NULL;
vq->last_avail_idx = 0;
vq->dev = dev;
vq->inflight = 0;
vq->blocked = false;

/* Initialize the configuration. */
Expand Down

0 comments on commit 874fad8

Please sign in to comment.