* [Qemu-devel] [PATCH] apic: reset apic_delivered global variable on machine reset
@ 2017-01-31 11:40 Pavel Dovgalyuk
2017-02-06 9:50 ` Paolo Bonzini
0 siblings, 1 reply; 2+ messages in thread
From: Pavel Dovgalyuk @ 2017-01-31 11:40 UTC (permalink / raw)
To: qemu-devel; +Cc: pbonzini, dovgaluk, mst
This patch adds call to apic_reset_irq_delivered when the virtual
machine is reset.
Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
---
hw/intc/apic_common.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/intc/apic_common.c b/hw/intc/apic_common.c
index 17df24c..cda3e9c 100644
--- a/hw/intc/apic_common.c
+++ b/hw/intc/apic_common.c
@@ -251,6 +251,8 @@ static void apic_reset_common(DeviceState *dev)
s->apicbase = APIC_DEFAULT_ADDRESS | bsp | MSR_IA32_APICBASE_ENABLE;
s->id = s->initial_apic_id;
+ apic_reset_irq_delivered();
+
s->vapic_paddr = 0;
info->vapic_base_update(s);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] apic: reset apic_delivered global variable on machine reset
2017-01-31 11:40 [Qemu-devel] [PATCH] apic: reset apic_delivered global variable on machine reset Pavel Dovgalyuk
@ 2017-02-06 9:50 ` Paolo Bonzini
0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2017-02-06 9:50 UTC (permalink / raw)
To: Pavel Dovgalyuk, qemu-devel; +Cc: mst
On 31/01/2017 12:40, Pavel Dovgalyuk wrote:
> This patch adds call to apic_reset_irq_delivered when the virtual
> machine is reset.
>
> Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
> ---
> hw/intc/apic_common.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/hw/intc/apic_common.c b/hw/intc/apic_common.c
> index 17df24c..cda3e9c 100644
> --- a/hw/intc/apic_common.c
> +++ b/hw/intc/apic_common.c
> @@ -251,6 +251,8 @@ static void apic_reset_common(DeviceState *dev)
> s->apicbase = APIC_DEFAULT_ADDRESS | bsp | MSR_IA32_APICBASE_ENABLE;
> s->id = s->initial_apic_id;
>
> + apic_reset_irq_delivered();
> +
> s->vapic_paddr = 0;
> info->vapic_base_update(s);
>
>
Queued, thanks.
Paolo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-06 9:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-31 11:40 [Qemu-devel] [PATCH] apic: reset apic_delivered global variable on machine reset Pavel Dovgalyuk
2017-02-06 9:50 ` Paolo Bonzini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).