All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Qemu-devel] about the 'mptable' issue
@ 2016-01-14 10:36 Li, Liang Z
  2016-01-14 16:05 ` Kevin O'Connor
  0 siblings, 1 reply; 4+ messages in thread
From: Li, Liang Z @ 2016-01-14 10:36 UTC (permalink / raw)
  To: kevin, qemu-devel; +Cc: Paolo Bonzini, Han, Huaitong

Correct something.
 The actual parameter for QEMU in our test case is: 
 'qemu-systerm-x86_64  -enable-kvm -smp 20 -m 2048 -no-acpi  -monitor stdio
 -drive file=/mnt/centos6u6.qcow, if=none, id=foo -device virtio-blk-pci, drive=foo'

if there is no virtio-blk device: ' qemu-systerm-x86_64  -enable-kvm -smp 20 -m 2048
 -no-acpi  -monitor stdio -drive file=/mnt/centos6u6.qcow', guest can boot successfully.
 It seems something wrong which make the virtio-blk work incorrectly.

Liang 



> Subject: about the 'mptable' issue
> 
> Hi Kevin,
> 
> We just found when starting QEMU with the '-smp 20 -no-acpi' option,  the
> centos6.6 or rhel 7.2 guest failed to boot. By debugging, I found it's your
> seabios patch, the commit id '9ee2e26255661a'  caused the failure.
> 
> I don't know what issue your patch tried to fix, assuming it's the right fix,
> should we add some prompt  to prevent users from using such an option?
> Crash the guest is not a good choice.
> 
> 
> Liang

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] about the 'mptable' issue
  2016-01-14 10:36 [Qemu-devel] about the 'mptable' issue Li, Liang Z
@ 2016-01-14 16:05 ` Kevin O'Connor
  2016-01-15  1:08   ` Li, Liang Z
  0 siblings, 1 reply; 4+ messages in thread
From: Kevin O'Connor @ 2016-01-14 16:05 UTC (permalink / raw)
  To: Li, Liang Z; +Cc: Paolo Bonzini, seabios, qemu-devel, Han, Huaitong

CC'ing the seabios mailing list.

On Thu, Jan 14, 2016 at 10:36:07AM +0000, Li, Liang Z wrote:
> Correct something.
>  The actual parameter for QEMU in our test case is: 
>  'qemu-systerm-x86_64  -enable-kvm -smp 20 -m 2048 -no-acpi  -monitor stdio
>  -drive file=/mnt/centos6u6.qcow, if=none, id=foo -device virtio-blk-pci, drive=foo'
> 
> if there is no virtio-blk device: ' qemu-systerm-x86_64  -enable-kvm -smp 20 -m 2048
>  -no-acpi  -monitor stdio -drive file=/mnt/centos6u6.qcow', guest can boot successfully.
>  It seems something wrong which make the virtio-blk work incorrectly.
> 
> Liang 
> 
> 
> 
> > Subject: about the 'mptable' issue
> > 
> > Hi Kevin,
> > 
> > We just found when starting QEMU with the '-smp 20 -no-acpi' option,  the
> > centos6.6 or rhel 7.2 guest failed to boot. By debugging, I found it's your
> > seabios patch, the commit id '9ee2e26255661a'  caused the failure.
> > 
> > I don't know what issue your patch tried to fix, assuming it's the right fix,
> > should we add some prompt  to prevent users from using such an option?
> > Crash the guest is not a good choice.
> > 
> > 
> > Liang
> 

The problem is that the mptable can grow too large to be stored in the
0xf0000-0x100000 region of memory.  SeaBIOS allocates 2048 bytes for
bios tables and other critical internal storage in that range - it
will not allow the mptable to consume more than 600 bytes of that
storage (patch 9ee2e262).  If the code allows the mptable to grow
unbounded then other critical allocations can fail with undesirable
results.

It is possible to allocate the mptable in memory above the first 1meg
where the mptable size could be unbounded, but that causes Linux
versions earlier than v2.6.30 to crash.

It is unlikely that virtio-blk has any impact on this issue - the
additional device probably just caused the mptable to slightly exceed
600 bytes.

It is unlikely that the lack of the mptable is directly causing a
Linux crash - more likely is that with neither an mptable nor an acpi
table there is insufficient information for Linux to enumerate the
machine's hardware.

My initial reaction is to avoid -no-acpi on machines with 20+ cpus.
Is there a reason to turn acpi off?

-Kevin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] about the 'mptable' issue
  2016-01-14 16:05 ` Kevin O'Connor
@ 2016-01-15  1:08   ` Li, Liang Z
  0 siblings, 0 replies; 4+ messages in thread
From: Li, Liang Z @ 2016-01-15  1:08 UTC (permalink / raw)
  To: Kevin O'Connor; +Cc: Paolo Bonzini, seabios, qemu-devel, Han, Huaitong

> On Thu, Jan 14, 2016 at 10:36:07AM +0000, Li, Liang Z wrote:
> > Correct something.
> >  The actual parameter for QEMU in our test case is:
> >  'qemu-systerm-x86_64  -enable-kvm -smp 20 -m 2048 -no-acpi  -monitor
> > stdio  -drive file=/mnt/centos6u6.qcow, if=none, id=foo -device virtio-blk-
> pci, drive=foo'
> >
> > if there is no virtio-blk device: ' qemu-systerm-x86_64  -enable-kvm
> > -smp 20 -m 2048  -no-acpi  -monitor stdio -drive file=/mnt/centos6u6.qcow',
> guest can boot successfully.
> >  It seems something wrong which make the virtio-blk work incorrectly.
> >
> > Liang
> >
> >
> >
> > > Subject: about the 'mptable' issue
> > >
> > > Hi Kevin,
> > >
> > > We just found when starting QEMU with the '-smp 20 -no-acpi' option,
> > > the
> > > centos6.6 or rhel 7.2 guest failed to boot. By debugging, I found
> > > it's your seabios patch, the commit id '9ee2e26255661a'  caused the
> failure.
> > >
> > > I don't know what issue your patch tried to fix, assuming it's the
> > > right fix, should we add some prompt  to prevent users from using such
> an option?
> > > Crash the guest is not a good choice.
> > >
> > >
> > > Liang
> >
> 
> The problem is that the mptable can grow too large to be stored in the
> 0xf0000-0x100000 region of memory.  SeaBIOS allocates 2048 bytes for bios
> tables and other critical internal storage in that range - it will not allow the
> mptable to consume more than 600 bytes of that storage (patch 9ee2e262).
> If the code allows the mptable to grow unbounded then other critical
> allocations can fail with undesirable results.
> 
> It is possible to allocate the mptable in memory above the first 1meg where
> the mptable size could be unbounded, but that causes Linux versions earlier
> than v2.6.30 to crash.
> 
> It is unlikely that virtio-blk has any impact on this issue - the additional device
> probably just caused the mptable to slightly exceed
> 600 bytes.
> 
> It is unlikely that the lack of the mptable is directly causing a Linux crash -
> more likely is that with neither an mptable nor an acpi table there is
> insufficient information for Linux to enumerate the machine's hardware.
> 
> My initial reaction is to avoid -no-acpi on machines with 20+ cpus.
> Is there a reason to turn acpi off?
> 
> -Kevin

Thanks for your expiation. There no strong reason for this. 
Our QA team reported this bug, you know, for QA, they will test all the case.

Do you think it's reasonable to prevent user from using '-no-acpi' with 20+ cpus?

Liang

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Qemu-devel] about the 'mptable' issue
@ 2016-01-14  9:15 Li, Liang Z
  0 siblings, 0 replies; 4+ messages in thread
From: Li, Liang Z @ 2016-01-14  9:15 UTC (permalink / raw)
  To: kevin, qemu-devel; +Cc: Paolo Bonzini, Han, Huaitong

Hi Kevin,

We just found when starting QEMU with the '-smp 20 -no-acpi' option,  the centos6.6 or rhel 7.2 guest failed to boot. By debugging,
I found it's your seabios patch, the commit id '9ee2e26255661a'  caused the failure.

I don't know what issue your patch tried to fix, assuming it's the right fix, should we add some prompt  to prevent users from using such an option?
Crash the guest is not a good choice. 


Liang

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-01-15  1:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-14 10:36 [Qemu-devel] about the 'mptable' issue Li, Liang Z
2016-01-14 16:05 ` Kevin O'Connor
2016-01-15  1:08   ` Li, Liang Z
  -- strict thread matches above, loose matches on Subject: below --
2016-01-14  9:15 Li, Liang Z

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.