Re: [PATCH RESEND] KVM: when entering real mode align segment base to 16 bytes

Avi Kivity
2010-12-27T14:55:11Z

On 12/27/2010 04:37 PM, Gleb Natapov wrote:
> > What's the scenario here? And what segment is involved? if it's fs
> > or gs, or maybe ss, I can see it working out, but hardly otherwise.
> >
> The scenario is older Seabios that lefts DS segment unaligned during
> switch to real mode in int1587 function (copy extended memory).
>

Did it not use %ds then?

What about switching back to protected mode? I see we do restore the
base, so it can continue to use the segment. I guess this isn't an
issue for 1587.