From 3205fcd904abcbce2995e86be0bc59069a828115 Mon Sep 17 00:00:00 2001 From: Elliot Berman Date: Tue, 5 May 2020 17:19:31 -0700 Subject: [PATCH] haven: irq_lend: Lendee registration persists across transactions Presently, clients must re-register to receive IRQ lend notification. Every client presently must do this and there is no use-case to require clients to re-register to receive IRQ lend notification. Return the internal IRQ lend state to WAIT_LEND after release, instead of unregistered. Change-Id: I17504e2850ae60e68d755b587ff6d0c3e78926d9 Signed-off-by: Elliot Berman --- drivers/virt/haven/hh_irq_lend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virt/haven/hh_irq_lend.c b/drivers/virt/haven/hh_irq_lend.c index 406a7114e710..9fbbb8c205dd 100644 --- a/drivers/virt/haven/hh_irq_lend.c +++ b/drivers/virt/haven/hh_irq_lend.c @@ -307,7 +307,7 @@ int hh_irq_release(enum hh_irq_label label) ret = hh_rm_vm_irq_release_notify(entry->vmid, entry->virq_handle); if (!ret) - entry->state = HH_IRQ_STATE_NONE; + entry->state = HH_IRQ_STATE_WAIT_LEND; return ret; } EXPORT_SYMBOL(hh_irq_release);