Kernel KVM virtualization development
 help / color / mirror / Atom feed
From: Bandan Das <bsd@redhat.com>
To: Shih-Wei Li <shihwei@cs.columbia.edu>
Cc: Paolo Bonzini <pbonzini@redhat.com>, kvm@vger.kernel.org
Subject: Re: [PATCH kvm-unit-tests] x86: fix last commit
Date: Sat, 01 Aug 2015 15:05:30 -0400	[thread overview]
Message-ID: <jpg3802bzid.fsf@linux.bootlegged.copy> (raw)
In-Reply-To: CAO+sbHFRfc89aQqxL1AWD+-59ZCFxz37fj=7yki+8K1R9GoCJQ@mail.gmail.com

Shih-Wei Li <shihwei@cs.columbia.edu> writes:

> Hi Paolo,
>
> I've tried to apply the patch, and found that it passed most of the
> problematic tests I mentioned earlier (IPI related, kvmclock_test).
> However, it stopped still at "s3" and couldn't finish it. Do you know
> what might go wrong?

Nothing is wrong, that's the way the test is. You need to resume from
qemu for it to proceed and it should quit with 1 for error or 0 for
success.

> Thanks,
> Shih-Wei
>
> On Thu, Jul 30, 2015 at 9:38 AM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>> Keeping the selector that was loaded from the 32-bit GDT is okay, because
>> only code segment descriptors differ between 32- and 64-bit mode.  In
>> fact the same is true for %ss as well, so let's just remove the whole
>> segment loading from load_tss.
>>
>> Thanks to Bandan Das for debugging.
>>
>> Reported-by: Shih-Wei Li <shihwei@cs.columbia.edu>
>> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>> ---
>>  x86/cstart64.S | 6 ------
>>  1 file changed, 6 deletions(-)
>>
>> diff --git a/x86/cstart64.S b/x86/cstart64.S
>> index 8d5ee2d..e947888 100644
>> --- a/x86/cstart64.S
>> +++ b/x86/cstart64.S
>> @@ -213,12 +213,6 @@ idt_descr:
>>
>>  load_tss:
>>         lidtq idt_descr
>> -       mov $0x10, %eax
>> -       mov %ax, %ds
>> -       mov %ax, %es
>> -       mov %ax, %fs
>> -       mov %ax, %gs
>> -       mov %ax, %ss
>>         mov $(APIC_DEFAULT_PHYS_BASE + APIC_ID), %eax
>>         mov (%rax), %eax
>>         shr $24, %eax
>> --
>> 1.8.3.1
>>

  reply	other threads:[~2015-08-01 19:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-30 13:38 [PATCH kvm-unit-tests] x86: fix last commit Paolo Bonzini
2015-08-01 15:41 ` Shih-Wei Li
2015-08-01 19:05   ` Bandan Das [this message]
2015-08-01 20:49     ` Paolo Bonzini
2015-08-01 21:20       ` Bandan Das
2015-08-01 21:59         ` Shih-Wei Li
2015-08-02  7:47         ` Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jpg3802bzid.fsf@linux.bootlegged.copy \
    --to=bsd@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=shihwei@cs.columbia.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox