Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125250
b: refs/heads/master
c: fbac781
h: refs/heads/master
v: v3
  • Loading branch information
Sheng Yang authored and Avi Kivity committed Dec 31, 2008
1 parent cabe0bb commit 98cd2b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 4f906c19ae29397409bedabf7bbe5cb42ad90332
refs/heads/master: fbac7818d8fba7e1df9f4b209777f3b67b953dd3
10 changes: 4 additions & 6 deletions trunk/virt/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ static int assigned_device_update_intx(struct kvm *kvm,
struct kvm_assigned_dev_kernel *adev,
struct kvm_assigned_irq *airq)
{
if (adev->irq_requested_type & KVM_ASSIGNED_DEV_GUEST_INTX) {
adev->guest_irq = airq->guest_irq;
adev->ack_notifier.gsi = airq->guest_irq;
adev->guest_irq = airq->guest_irq;
adev->ack_notifier.gsi = airq->guest_irq;

if (adev->irq_requested_type & KVM_ASSIGNED_DEV_HOST_INTX)
return 0;
}

if (irqchip_in_kernel(kvm)) {
if (!capable(CAP_SYS_RAWIO))
Expand All @@ -194,8 +194,6 @@ static int assigned_device_update_intx(struct kvm *kvm,
adev->host_irq = airq->host_irq;
else
adev->host_irq = adev->dev->irq;
adev->guest_irq = airq->guest_irq;
adev->ack_notifier.gsi = airq->guest_irq;

/* Even though this is PCI, we don't want to use shared
* interrupts. Sharing host devices with guest-assigned devices
Expand Down

0 comments on commit 98cd2b3

Please sign in to comment.