kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nadav Amit <nadav.amit@gmail.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org
Subject: Re: [kvm-unit-tests PATCH 3/3] x86: Support environments without test-devices
Date: Tue, 2 Jul 2019 16:56:29 -0700	[thread overview]
Message-ID: <A4764CFE-CA7A-4714-A54A-9E32DC591160@gmail.com> (raw)
In-Reply-To: <954DC323-15B7-4B35-9249-AB03C9D01BB5@gmail.com>

> On Jul 2, 2019, at 4:39 PM, Nadav Amit <nadav.amit@gmail.com> wrote:
> 
>> On Jul 2, 2019, at 11:28 AM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>> 
>> On 02/07/19 19:45, Nadav Amit wrote:
>>>>> I know you are not “serious”, but I’ll use this opportunity for a small
>>>>> clarification. You do need to provide the real number of CPUs as otherwise
>>>>> things will fail. I do not use cpuid, as my machine, for example has two
>>>>> sockets. Decoding the ACPI tables is the right way, but I was too lazy to
>>>>> implement it.
>>>> What about the mptables, too?
>>> If you mean to reuse mptable.c from [1] or [2] - I can give it a shot. I am
>>> not about to write my own parser.
>> 
>> Sure.
> 
> So mptable logic works on a couple of my machines, but not all.
> 
> For instance, on my Dell R630, running x86info (which uses mptable.c), I
> get:
> 
>  x86info v1.31pre  Dave Jones 2001-2011
>  Feedback to <davej@redhat.com>.
> 
>  Found 48 identical CPUsMP Configuration Table Header MISSING!
> 
> And this message (corrupted, but indicates what the code does), is since
> apparently the "MP Floating Pointer Structure” holds a zeroed physical
> address pointer. (The number 48 comes from sysconf, and clearly not usable
> in kvm-unit-tests.)
> 
> I also enable apic debugging and had a look on Linux's mpparse outputs. It
> does not find the MPF either. 
> 
> So it seems to me that it is down to either doing a more comprehensive ACPI
> table decoding or having a fallback in the form of a kernel parameter. I am
> not really excited about implementing the ACPI option, since I am afraid a
> basic implementation will encounter some issues on some machines, similarly
> to mptable. The other option is having a fallback as a test parameter, but
> if there is already a fallback, then using mptable becomes an enhancement,
> and can be left out right now.
> 
> What do you say?

Never mind (for now). I’ll have a look at libacpi when I have time.

  reply	other threads:[~2019-07-03  0:51 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-28 20:30 [kvm-unit-tests PATCH 0/3] x86: Running tests on bare-metal Nadav Amit
2019-06-28 20:30 ` [kvm-unit-tests PATCH 1/3] libcflat: use stdbool Nadav Amit
2019-07-02 16:08   ` Paolo Bonzini
2019-06-28 20:30 ` [kvm-unit-tests PATCH 2/3] x86/vmx: Use plus for positive filters Nadav Amit
2019-06-28 20:30 ` [kvm-unit-tests PATCH 3/3] x86: Support environments without test-devices Nadav Amit
2019-07-02 16:08   ` Paolo Bonzini
2019-07-02 16:43     ` Nadav Amit
2019-07-02 17:24       ` Paolo Bonzini
2019-07-02 17:45         ` Nadav Amit
2019-07-02 18:28           ` Paolo Bonzini
2019-07-02 23:39             ` Nadav Amit
2019-07-02 23:56               ` Nadav Amit [this message]
2019-07-03  5:39               ` Paolo Bonzini
2019-07-03  6:09                 ` Nadav Amit
2019-07-15 15:48   ` Andrew Jones
2019-07-15 18:08     ` Nadav Amit
2019-07-15 18:26       ` Paolo Bonzini
2019-07-15 18:43         ` Nadav Amit
2019-07-15 18:54           ` Paolo Bonzini
2019-07-21 16:40             ` Nadav Amit
2019-07-21 16:51               ` 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=A4764CFE-CA7A-4714-A54A-9E32DC591160@gmail.com \
    --to=nadav.amit@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    /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;
as well as URLs for NNTP newsgroup(s).