From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@bugzilla.kernel.org Subject: [Bug 65561] KVM:Entry failed on Single stepping sti instruction Date: Sat, 24 May 2014 05:51:08 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from mail.kernel.org ([198.145.19.201]:33553 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750751AbaEXFvM (ORCPT ); Sat, 24 May 2014 01:51:12 -0400 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3CC7F203F1 for ; Sat, 24 May 2014 05:51:10 +0000 (UTC) Received: from bugzilla1.web.kernel.org (bugzilla1.web.kernel.org [172.20.200.51]) by mail.kernel.org (Postfix) with ESMTP id A8D302022D for ; Sat, 24 May 2014 05:51:08 +0000 (UTC) In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: https://bugzilla.kernel.org/show_bug.cgi?id=65561 --- Comment #23 from Jidong Xiao --- Jatin, do you mean that if one instruction triggers a VM_EXIT, then it won't trigger the emulate code? So why the emulate code tries to emulate those privileged instructions, like wrmsr, rdmsr, mov cr to reg, mov dr to reg, I think these instructions will trigger VM_EXIT anyway, but we see the kvm emulator still attempt to emulate them. (In reply to Jatin Kumar from comment #21) > The way I would approach this problem is to first check if there is a > VM_EXIT while executing this instruction. You should be able to find that in > vmx_vcpu_run() function (I guess in KVM code). Put a printk there and print > the instruction as well which caused VM_EXIT. > > Futher you should try to investigate if the control flow is trying to > emulate this instruction and then your printk's should be triggered. > > CAUTION: I haven't spent much time digging KVM code, but I am confident > about the VM_EXIT part. Still after putting in some effort, you may want to > wait for Paolo's reply :) -- You are receiving this mail because: You are watching the assignee of the bug.