From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755664AbaEGI6e (ORCPT ); Wed, 7 May 2014 04:58:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:16364 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752675AbaEGI6c (ORCPT ); Wed, 7 May 2014 04:58:32 -0400 Message-ID: <5369F5B0.7050307@redhat.com> Date: Wed, 07 May 2014 10:58:24 +0200 From: Paolo Bonzini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Hu Yaohui , Abel Gordon CC: Bandan Das , kvm , "linux-kernel@vger.kernel.org" , Muli Ben-Yehuda Subject: Re: KVM Nested L2 guest startup problems References: <53636B1D.8030405@redhat.com> <5363BF42.9020505@redhat.com> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 04/05/2014 18:33, Hu Yaohui ha scritto: >> I experienced a similar problem that was related to nested code >> having some bugs related to apicv and other new vmx features. >> >> For example, the code enabled posted interrupts to run L2 even when the >> feature was not exposed to L1 and L1 didn't use it. >> >> Try changing prepare_vmcs02 to force disabling posted_interrupts, >> code should looks like: >> >> .... >> .... >> exec_control = vmcs12->pin_based_vm_exec_control; >> exec_control |= vmcs_config.pin_based_exec_ctrl; >> exec_control &= ~(PIN_BASED_VMX_PREEMPTION_TIMER|PIN_BASED_POSTED_INTR); >> vmcs_write32(PIN_BASED_VM_EXEC_CONTROL, exec_control); >> .... >> ... >> >> and also >> >> ... >> ... >> exec_control &= ~(SECONDARY_EXEC_VIRTUALIZE_APIC_ACCESSES | >> SECONDARY_EXEC_VIRTUAL_INTR_DELIVERY | >> SECONDARY_EXEC_APIC_REGISTER_VIRT | >> SECONDARY_EXEC_PAUSE_LOOP_EXITING); PLE should be left enabled, I think. Apart from that, I'll change the suggestion into a patch. Thanks! Paolo