From: Paolo Bonzini Subject: Re: [PATCH] kvm-unit-tests: VMX: Test suite for preemption timer Date: Mon, 09 Sep 2013 14:51:06 +0200 Message-ID: <522DC43A.9060601@redhat.com> References: <1378308395-3209-1-git-send-email-yzt356@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: kvm , Jan Kiszka , Gleb Natapov To: Arthur Chunqi Li Return-path: Received: from mail-qa0-f52.google.com ([209.85.216.52]:58921 "EHLO mail-qa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751814Ab3IIMvD (ORCPT ); Mon, 9 Sep 2013 08:51:03 -0400 Received: by mail-qa0-f52.google.com with SMTP id bv4so116567qab.4 for ; Mon, 09 Sep 2013 05:51:02 -0700 (PDT) In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Il 05/09/2013 11:22, Arthur Chunqi Li ha scritto: > Hi Jan, Gleb and Paolo, > > It suddenly occurred to me that, if guest's PIN_PREEMPT disabled while > EXI_SAVE_PREEMPT_VALUE enabled, what will happen? The preempt value in > vmcs will not be affected, yes? Indeed. The VMX preemption timer will not count down, so it will remain set to the same value. Saving it on exit will actually do nothing. > This cases fails to test in this patch. You can add it as a follow up. Paolo