Received: from eggs.gnu.org ([2001:4830:134:3::10]:60508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1co4FS-0003sD-Q6 for qemu-devel@nongnu.org; Wed, 15 Mar 2017 04:25:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1co4FO-0007Mq-Pr for qemu-devel@nongnu.org; Wed, 15 Mar 2017 04:25:34 -0400 Received: from indium.canonical.com ([91.189.90.7]:45196) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1co4FO-0007Mj-Ju for qemu-devel@nongnu.org; Wed, 15 Mar 2017 04:25:30 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1co4FN-0003fK-65 for ; Wed, 15 Mar 2017 08:25:29 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 453E22E80D3 for ; Wed, 15 Mar 2017 08:25:26 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 15 Mar 2017 08:08:12 -0000 From: Thomas Huth <720657@bugs.launchpad.net> Reply-To: Bug 720657 <720657@bugs.launchpad.net> Sender: bounces@canonical.com References: <20110217115121.6900.44475.malonedeb@wampee.canonical.com> Message-Id: <20170315080813.15736.92770.malone@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 720657] Re: SVM intercept for VINTR exits too early List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Triaging old bug tickets ... can you still reproduce this problem with the latest version of QEMU? ** Changed in: qemu Status: New =3D> Incomplete -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/720657 Title: SVM intercept for VINTR exits too early Status in QEMU: Incomplete Bug description: The following happens with QEMU-0.14-rc2. QEMU-0.13 did not have this problem. A guest operating system running inside an SVM VM contains the following = code sequence: c000002b: fb sti = c000002c: 0f 35 sysexit = The following is a list of exits that occur at guest RIP 0xc000002c (other exits omitted for clarity): exit=3D0x60 int_shadow=3D0x1 int_control=3D0x1000000 inj=3D0x600000000 ri= p=3D0xc000002c entry: int_shadow=3D0x1 int_control=3D0x1000000 inj=3D0x600000000 (exit due to physical interrupt, correctly reports STI blocking, entry does not inject anything) exit=3D0x60 int_shadow=3D0x1 int_control=3D0x1000000 inj=3D0x600000000 ri= p=3D0xc000002c entry: int_shadow=3D0x1 int_control=3D0x1100100 inj=3D0x600000000 (exit due to physical interrupt, correctly reports STI blocking, entry pends a VINTR to cause a VM exit when interrupt window opens. VINTR is being intercepted by the hypervisor.) exit=3D0x64 int_shadow=3D0x0 int_control=3D0x1100100 inj=3D0x600000000 ri= p=3D0xc000002c entry: int_shadow=3D0x0 int_control=3D0x1000000 inj=3D0x6800000a0 (exit due to VINTR. At this point STI blocking is still effective - though not reported. Actually, the VINTR exit should occur AFTER the SYSEXIT instruction, not after STI. Due to this bug, the hypervisor injects vector 0xa0 into an interrupt shadow, and things break). To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/720657/+subscriptions