From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 4/6] add syscall emulation Date: Thu, 18 Jun 2009 11:47:26 +0300 Message-ID: <4A39FF1E.6090203@redhat.com> References: <1245246636-30760-1-git-send-email-andre.przywara@amd.com> <1245246636-30760-5-git-send-email-andre.przywara@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, Christoph Egger To: Andre Przywara Return-path: Received: from mx2.redhat.com ([66.187.237.31]:40013 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752977AbZFRIrD (ORCPT ); Thu, 18 Jun 2009 04:47:03 -0400 In-Reply-To: <1245246636-30760-5-git-send-email-andre.przywara@amd.com> Sender: kvm-owner@vger.kernel.org List-ID: On 06/17/2009 04:50 PM, Andre Przywara wrote: > > +static inline void > +setup_syscalls_segments(struct x86_emulate_ctxt *ctxt, > + struct kvm_segment *cs, struct kvm_segment *ss) > +{ > + memset(cs, 0, sizeof(struct kvm_segment)); > + kvm_x86_ops->get_segment(ctxt->vcpu, cs, VCPU_SREG_CS); > + memset(ss, 0, sizeof(struct kvm_segment)); > + > + cs->l = 0; /* will be adjusted later */ > + cs->base = 0; /* flat segment */ > + cs->g = 1; /* 4kb granularity */ > + cs->limit = 0xfffff; /* 4GB limit */ > ... > + ss->limit = 0xfffff; /* 4GB limit */ > limit in kvm_segment is expanded, so 4GB is 0xffffffff. -- error compiling committee.c: too many arguments to function