All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: Laszlo Ersek <lersek@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Richard W.M. Jones" <rjones@redhat.com>
Cc: peter.maydell@linaro.org, ehabkost@redhat.com,
	zhaoshenglong@huawei.com, qemu-devel@nongnu.org,
	pbonzini@redhat.com, imammedo@redhat.com, rth@twiddle.net
Subject: Re: [Qemu-devel] [PATCH 1/2] acpi: Allow ACPI default OEM ID and OEM table ID fields to be set.
Date: Thu, 03 Sep 2015 18:17:03 +0300	[thread overview]
Message-ID: <55E8646F.20401@msgid.tls.msk.ru> (raw)
In-Reply-To: <55E862A3.4070702@redhat.com>

03.09.2015 18:09, Laszlo Ersek wrote:
> On 09/02/15 23:32, Michael S. Tsirkin wrote:
>> On Wed, Sep 02, 2015 at 08:03:37PM +0100, Richard W.M. Jones wrote:
>>> When using qemu's internal ACPI table generation, qemu sets the fields
>>> OEM ID and OEM table ID to arbitrary default values.  OEM ID is set to
>>> "BOCHS " and OEM table ID is set to "BXPCxxxx" where "xxxx" is
>>> replaced by the ACPI table name (eg. "BXPCRSDT" for the RSDT table).
>>>
>>> This patch allows you to override these default values.
>>>
>>> Use one of these alternatives:
>>>
>>>   qemu -acpidefault oem_id=ABCD,oem_table_id=EFGH
>>>   qemu -acpidefault oem_id=ABCD,oem_table_id=EFGHIJKL
>>>
>>> In the first case, the last four types of the OEM table name field are
>>> set to the ACPI table name.
>>>
>>> This does not affect the -acpitable option (for user-defined ACPI
>>> tables), which has its own method for setting these fields.
>>>
>>> Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
>>
>> I don't think the 1st option makes sense - why force
>> 4 bytes of the ID?
>>
>> And the issue with the 2nd one is that it won't work if
>> there are two tables with same ID - which might be the
>> case for SSID and UEFI tables at least.
>>
>> Maybe specify this per signature?
> 
> I agree with these remarks, but I'd propose a different idea for solving
> the OEM Table ID problem.
> 
> As can be seen from the previous discussion that Rich linked in the
> blurb, and from Michael Tokarev's patch, and from Chris Evich's earlier
> testing of Win8.1 (linked in the previous discussion), the *only* guest
> OS where this matters is Windows 7. And Windows 7 doesn't care about the
> OEM Table Id, only the OEM Id.

Actually win7 do care about oem table id.  And my patch shows it.  This
is the minimal portion of RSDT (and also FACP in UEFI mode) which should
match SLIC -- oem_id (6 bytes) and oem_table_id (8 bytes). My patch copies
10 bytes starting with oem_id.  Without that, win7 offline activation
doesn't work.

FWIW :)

Thanks,

/mjt

  reply	other threads:[~2015-09-03 15:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-02 19:03 [Qemu-devel] [PATCH 1/2] acpi: Allow ACPI default OEM ID and OEM table ID fields to be set Richard W.M. Jones
2015-09-02 19:03 ` Richard W.M. Jones
2015-09-02 19:16   ` Richard W.M. Jones
2015-09-02 21:32   ` Michael S. Tsirkin
2015-09-03 15:09     ` Laszlo Ersek
2015-09-03 15:17       ` Michael Tokarev [this message]
2015-09-03 15:37         ` Laszlo Ersek
2015-09-03 16:33           ` Michael Tokarev
2015-09-03 16:44             ` Laszlo Ersek
2015-09-03 19:56             ` Michael S. Tsirkin
2015-09-03 19:55           ` Michael S. Tsirkin
2015-09-03 20:51             ` Richard W.M. Jones
2015-09-02 19:03 ` [Qemu-devel] [PATCH 2/2] acpi: Remove unused definition Richard W.M. Jones

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=55E8646F.20401@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=ehabkost@redhat.com \
    --cc=imammedo@redhat.com \
    --cc=lersek@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rjones@redhat.com \
    --cc=rth@twiddle.net \
    --cc=zhaoshenglong@huawei.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.