New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 838642 link

Starred by 9 users

Issue metadata

Status: Assigned
Owner:
Last visit > 30 days ago
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug

Blocking:
issue 837375



Sign in to add a comment

Explicit control of maximum virtio wayland buffers in crosvm and better error reporting

Project Member Reported by reve...@chromium.org, May 1 2018

Issue description

Crosvm silently starts failing to allocate/map buffers if a VM attempts to allocate more than 509 buffers.

See  issue 837375  for more details. 
 
Blocking: 837375

Comment 2 by za...@chromium.org, May 1 2018

The failure you're seeing is due to the maximum number of memory slots in x86 kvm: https://elixir.bootlin.com/linux/v4.4.130/source/arch/x86/include/asm/kvm_host.h#L38 not due to maximum number of FDs. The correct solution is not to limit the number of allocations but to limit the number of concurrent memory mappings at once, wsich should never be that high, even in egregiously badly written applications that make 600 cursors on start up.
Can we add better logging for when we reach this limit? A misbehaving VM can always trigger it.

My improvements to xwayland and sommelier will make it much less likely that we reach this limit but I also want to make sure that a misbehaving app can't cause other applications from working correctly.   
Description: Show this description
Labels: -Pri-3 Hotlist-Crostini-Platform Pri-2
Owner: reve...@chromium.org
Status: Assigned (was: Untriaged)
<triage>Is this fixed?</triage>
Nope. Logging is still pretty bad and the concurrent mapping limit has not been implemented.

Sign in to add a comment