Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 340e01248478ba8b78a6d4d1809b1eff > files > 228

kvm-83-270.el5_11.src.rpm

From e8dd9b6411952f771cc011355b81167fb718faff Mon Sep 17 00:00:00 2001
From: Dor Laor <dlaor@redhat.com>
Date: Wed, 30 Dec 2009 11:03:16 -0200
Subject: [PATCH 6/6] The driver/device pair does not have a reset option (2)

RH-Author: Dor Laor <dlaor@redhat.com>
Message-id: <patch-6001-clone-for-rhel5>
Patchwork-id: 6089
O-Subject: [kvm 5.4.z, 5.5][PATCH 2/2] The driver/device pair does not have
	a reset option
Bugzilla: 550755
RH-Acked-by: Juan Quintela <quintela@redhat.com>
RH-Acked-by: Gleb Natapov <gleb@redhat.com>
RH-Acked-by: Naphtali Sprei <nsprei@redhat.com>

>From acad635589240106411ae2625584c90131783720 Mon Sep 17 00:00:00 2001
Message-Id: <acad635589240106411ae2625584c90131783720.1262170051.git.dor@redhat.com>
In-Reply-To: <452b0b6ad0889df80b90d3745b78bfca926a2464.1262170051.git.dor@redhat.com>
References: <452b0b6ad0889df80b90d3745b78bfca926a2464.1262170051.git.dor@redhat.com>
From: Dor Laor <dor@redhat.com>
Date: Tue, 29 Dec 2009 17:26:00 +0200
Subject: [PATCH 2/2] There are cases, like device reset, where we need to de-assert
the irq line regardless of the state of the driver
bz550755

Signed-off-by: Dor Laor <dor@redhat.com>
---
 qemu/hw/hypercall.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 qemu/hw/hypercall.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/qemu/hw/hypercall.c b/qemu/hw/hypercall.c
index 9063224..353137d 100644
--- a/qemu/hw/hypercall.c
+++ b/qemu/hw/hypercall.c
@@ -222,9 +222,6 @@ static void hypercall_update_irq(HypercallState *s)
 {
     int irq_level = (s->hsr & HSR_PENDING) && (s->hcr & HCR_IRQ_ON);
 
-    if (!(s->driver_state & HP_DRIVER_INITELIZED))
-        return;
-
 #ifdef HYPERCALL_DEBUG
     printf("%s, irq_level=%d ,hsr=%d hcr=%d\n", __FUNCTION__, irq_level, s->hsr, s->hcr);
 #endif
-- 
1.6.3.rc4.29.g8146