Re: [kvm-unit-tests v2 PATCH 2/2] x86: realmode: fix esp in call test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 21, 2019 at 8:43 AM Paolo Bonzini <pbonzini@xxxxxxxxxx> wrote:
>
> On 17/10/19 03:25, Bill Wendling wrote:
> > diff --git a/x86/realmode.c b/x86/realmode.c
> > index 41b8592..f318910 100644
> > --- a/x86/realmode.c
> > +++ b/x86/realmode.c
> > @@ -520,7 +520,7 @@ static void test_call(void)
> >       u32 addr;
> >
> >       inregs = (struct regs){ 0 };
> > -     inregs.esp = (u32)esp;
> > +     inregs.esp = (u32)(esp+16);
>
> Applied with
>
> +       inregs.esp = (u32)&esp[ARRAY_SIZE(esp)];
>
> Paolo

Would you mind doing the same for test_long_jmp?



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux