From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: Questions about to dos in emulate.c Date: Mon, 12 Jan 2015 16:41:16 +0100 Message-ID: <54B3EB1C.3020208@redhat.com> References: <54B0A714.5070903@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org To: nick , gleb@kernel.org Return-path: In-Reply-To: <54B0A714.5070903@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 10/01/2015 05:14, nick wrote: > Greetings Again Everyone, > I have a few questions about fix mes in emulate.c. They are listed > in numerical order below. > 1. For __emulate_int_real somebody stated we need limit checks. What > checks are needed for my information. These are written in the manual as IF stack not large enough for a 6-byte return information THEN #SS; FI; > 2. Secondly,about the function, emulate_iret_real are what do you mean > by stack limit checks and if possible what parts of the stacks for either > guest(s) or hosts we need to check. Same here: IF top 6 bytes of stack are not within stack limits THEN #SS; FI; Paolo > In addition if you need help with other work, please don't feel free to > contact me. > Thanks and Regards, > Nick >