From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [Question] Switching VCPU CPL from the hypervisor ? Date: Wed, 16 Dec 2015 18:48:38 +0100 Message-ID: <5671A3F6.5060207@redhat.com> References: <56704578.8080803@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Hebbal Yacine Return-path: Received: from mx1.redhat.com ([209.132.183.28]:36550 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934333AbbLPRsm (ORCPT ); Wed, 16 Dec 2015 12:48:42 -0500 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 15/12/2015 18:02, Hebbal Yacine wrote: > What I want to do is: when a controlled process is in user mode, i > change its cpl to 0, force it to execute a code that is injected in the > VM, set back its cpl to 3 and let it run like if nothing happened Could you inject an SMI and place your code in the guest firmware's SMM handler? What input is needed by this CPL=0 code? Paolo