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

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to