Commit cda5ec74 authored by Charlie Jacobsen's avatar Charlie Jacobsen Committed by Vikram Narayanan
Browse files

pmfs: mount: resolve ioremap cache functions, request regions.

ioremap_cache and friends just assume the memory is already
mapped in the address spaces, and does a phys -> virt translation.

request/release memory regions is a no-op inside the LCD. The
non-isolated glue for mount will need to invoke these functions.
parent adf25359
...@@ -234,6 +234,24 @@ void lcd_unmap_virt(gva_t base, unsigned int order) ...@@ -234,6 +234,24 @@ void lcd_unmap_virt(gva_t base, unsigned int order)
do_unmap_from_phys(gp_base, order); do_unmap_from_phys(gp_base, order);
} }
void *lcd_ioremap_cache(resource_size_t phys_addr, unsigned long size)
* Assumes someone already mapped the memory; we just
* translate phys -> virt.
return (void *)gva_val(isolated_lcd_gpa2gva(__gpa(phys_addr)));
void lcd_iounmap(void *addr)
* No-op. Someone (like the glue) will call a lower-level
* phys unmap.
/* INIT/EXIT ---------------------------------------- */ /* INIT/EXIT ---------------------------------------- */
struct lcd_page_allocator_cbs ram_map_page_allocator_cbs = { struct lcd_page_allocator_cbs ram_map_page_allocator_cbs = {
...@@ -39,12 +39,12 @@ X NO-OP DONE U __init_waitqueue_head ...@@ -39,12 +39,12 @@ X NO-OP DONE U __init_waitqueue_head
U inode_newsize_ok U inode_newsize_ok
U inode_owner_or_capable U inode_owner_or_capable
U insert_inode_locked U insert_inode_locked
X GLUE (GETTER) U iomem_resource X FAKE COPY DONE U iomem_resource
X LIBLCD U ioremap_cache X LIBLCD DONE U ioremap_cache
X LIBLCD U ioremap_cache_ro X LIBLCD DONE U ioremap_cache_ro
X LIBLCD U ioremap_hpage_cache X LIBLCD DONE U ioremap_hpage_cache
X LIBLCD U ioremap_hpage_cache_ro X LIBLCD DONE U ioremap_hpage_cache_ro
X LIBLCD U iounmap X LIBLCD DONE U iounmap
X GLUE U iput X GLUE U iput
U is_bad_inode U is_bad_inode
X GLUE U kill_anon_super X GLUE U kill_anon_super
...@@ -69,8 +69,8 @@ X GLUE U mount_nodev ...@@ -69,8 +69,8 @@ X GLUE U mount_nodev
U ___ratelimit U ___ratelimit
U _raw_spin_lock U _raw_spin_lock
U _raw_spin_unlock U _raw_spin_unlock
X GLUE U __release_region X NO-OP DONE U __release_region XXX: Non-isol will need to grant during mount
X GLUE U __request_region X NO-OP DONE U __request_region
U __sb_end_write U __sb_end_write
U __sb_start_write U __sb_start_write
U schedule U schedule
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment