From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Markus Rechberger" Subject: [PATCH] Fix writing back APIC reset to inkernel APIC Date: Thu, 01 Nov 2007 16:35:51 +0100 Message-ID: <4729F257.30502@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=------------090500080303040300000300 To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Joerg.Roedel-5C7GfCeVMHo@public.gmane.org Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org This is a multi-part message in MIME format. --------------090500080303040300000300 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit This patch synchronises the APIC reset with the inkernel implementation which fixes the reboot issues which can be seen with Linux and Windows. Signed-off-by: Joerg Roedel Signed-off-by: Markus Rechberger --------------090500080303040300000300 Content-Type: text/plain; name=apic_reset_fix.diff Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename=apic_reset_fix.diff diff --git a/qemu/hw/apic.c b/qemu/hw/apic.c index 2011247..60d31fa 100644 --- a/qemu/hw/apic.c +++ b/qemu/hw/apic.c @@ -930,6 +930,13 @@ static void apic_reset(void *opaque) * processor when local APIC is enabled. */ s->lvt[APIC_LVT_LINT0] = 0x700; +#ifdef USE_KVM +#ifdef KVM_CAP_IRQCHIP + if (kvm_allowed && kvm_irqchip_in_kernel(kvm_context)) { + kvm_kernel_lapic_load_from_user(s); + } +#endif +#endif } static CPUReadMemoryFunc *apic_mem_read[3] = { --------------090500080303040300000300 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ --------------090500080303040300000300 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --------------090500080303040300000300--