diff options
author | Dylan Reid <dgreid@chromium.org> | 2018-06-07 15:42:41 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-07-09 17:59:23 -0700 |
commit | 228e4a6a91ea2972b2443d3959c14d862a23c358 (patch) | |
tree | 4b7fd7bf8249b7dde2fbd8b958d836bc0a12d420 /devices/src/virtio/wl.rs | |
parent | 20d71f8928e1e95f6554c87cfca12f24f9f652cf (diff) | |
download | crosvm-228e4a6a91ea2972b2443d3959c14d862a23c358.tar crosvm-228e4a6a91ea2972b2443d3959c14d862a23c358.tar.gz crosvm-228e4a6a91ea2972b2443d3959c14d862a23c358.tar.bz2 crosvm-228e4a6a91ea2972b2443d3959c14d862a23c358.tar.lz crosvm-228e4a6a91ea2972b2443d3959c14d862a23c358.tar.xz crosvm-228e4a6a91ea2972b2443d3959c14d862a23c358.tar.zst crosvm-228e4a6a91ea2972b2443d3959c14d862a23c358.zip |
Move gpu allocator to resources
Combine GPU buffer allocation with the system resource allocator making life easier as only one allocator needs to get passed to the execute function. Change-Id: I199eb0fd6b99b629aaec1ae3295e8a1942da5309 Signed-off-by: Dylan Reid <dgreid@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1099856
Diffstat (limited to 'devices/src/virtio/wl.rs')
-rw-r--r-- | devices/src/virtio/wl.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/devices/src/virtio/wl.rs b/devices/src/virtio/wl.rs index 1ec6873..b946c51 100644 --- a/devices/src/virtio/wl.rs +++ b/devices/src/virtio/wl.rs @@ -58,13 +58,14 @@ use libc::{dup, EBADF, EINVAL}; use data_model::*; use data_model::VolatileMemoryError; +use resources::GpuMemoryDesc; use sys_util::{Error, Result, EventFd, Scm, SharedMemory, GuestAddress, GuestMemory, GuestMemoryError, PollContext, PollToken, FileFlags, pipe, round_up_to_page_size}; #[cfg(feature = "wl-dmabuf")] use sys_util::ioctl_with_ref; -use vm_control::{VmControlError, VmRequest, VmResponse, MaybeOwnedFd, GpuMemoryDesc}; +use vm_control::{VmControlError, VmRequest, VmResponse, MaybeOwnedFd}; use super::{VirtioDevice, Queue, DescriptorChain, INTERRUPT_STATUS_USED_RING, TYPE_WL}; const VIRTWL_SEND_MAX_ALLOCS: usize = 28; |