minigbm: eliminate fake capset check
It's better just to conditionally advertise cross domain capset in crosvm. This is to upstream aosp/2101455. BUG=173630595 TEST=compile Change-Id: Ic44176141cade44bfa0cc2fcf457ddafb7ae7195 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/3707443 Reviewed-by: Rob Clark <robdclark@chromium.org> Auto-Submit: Yiwei Zhang <zzyiwei@chromium.org> Commit-Queue: Yiwei Zhang <zzyiwei@chromium.org> Tested-by: Yiwei Zhang <zzyiwei@chromium.org>
This commit is contained in:
parent
9527781c92
commit
c3d282625c
1 changed files with 0 additions and 8 deletions
|
|
@ -239,14 +239,6 @@ static int cross_domain_init(struct driver *drv)
|
|||
if (!params[param_host_visible].value && !params[param_create_guest_handle].value)
|
||||
return -ENOTSUP;
|
||||
|
||||
/*
|
||||
* crosvm never reports the fake capset. This is just an extra check to make sure we
|
||||
* don't use the cross-domain context by accident. Developers may remove this for
|
||||
* testing purposes.
|
||||
*/
|
||||
if ((params[param_supported_capset_ids].value & (1 << CAPSET_CROSS_FAKE)) == 0)
|
||||
return -ENOTSUP;
|
||||
|
||||
priv = calloc(1, sizeof(*priv));
|
||||
if (!priv)
|
||||
return -ENOMEM;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue