From: Yacine HEBBAL Subject: Re: [Question] Switching VCPU CPL from the hypervisor ? Date: Tue, 15 Dec 2015 17:12:01 +0000 (UTC) Message-ID: References: <56704578.8080803@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from plane.gmane.org ([80.91.229.3]:44343 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964985AbbLORMM (ORCPT ); Tue, 15 Dec 2015 12:12:12 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a8t8x-0003hz-Iq for kvm@vger.kernel.org; Tue, 15 Dec 2015 18:12:07 +0100 Received: from ACaen-653-1-126-71.w83-115.abo.wanadoo.fr ([83.115.209.71]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 Dec 2015 18:12:07 +0100 Received: from y_hebbal by ACaen-653-1-126-71.w83-115.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 Dec 2015 18:12:07 +0100 Sender: kvm-owner@vger.kernel.org List-ID: > > Would a hypercall do? VMCALL can be executed from CPL 3. > > Paolo > -- > > 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 Yacine