From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: Create VM exits when guest executes IRET on Intel CPU ? Date: Sat, 25 Feb 2017 04:20:13 -0500 (EST) Message-ID: <300101062.25867277.1488014413365.JavaMail.zimbra@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: sci sci Return-path: Received: from mx6-phx2.redhat.com ([209.132.183.39]:33865 "EHLO mx6-phx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751419AbdBYJs5 (ORCPT ); Sat, 25 Feb 2017 04:48:57 -0500 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: > Within the guest I run a BSD guest OS that returns from certain system > calls using the IRET instruction. > > Do you have any thoughts on where I could be wrong? No, but I suggest using a small unit test in kvm-unit-tests https://www.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git/ (either vmx.flat to test the VMX settings, or a test using IRET to test your modified KVM). Tracing the unit test with trace-cmd can provide clues more easily. Paolo