]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
WIP xendevicemodel.h
authorIan Campbell <ian.campbell@citrix.com>
Thu, 17 Dec 2015 12:04:45 +0000 (12:04 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 10 Feb 2016 17:09:55 +0000 (17:09 +0000)
commit7bf4e92c200c494cc7df789731cedd43c6a18971
tree97109b47768e90a3aebae536087440fcc0e32ca1
parent401510ca092f75efc8c3832b3069f82ceeafe13a
WIP xendevicemodel.h

This is just the header docs as a starting point for discussion for
some further interfaces.

Implementation notes:

xendevicemodel_create_vram_region:
   - xen-hvm.c:xen_add_to_physmap, only used for vram (explicit check).
        - XENMEM_add_to_physmap + XEN_DOMCTL_pin_mem_cacheattr
        - Is first XENMEM_populate_physmap'd in
          xen-hvm.c:xen_ram_alloc. Some refactoring required.
   - XEN_DOMCTL_pin_mem_cacheattr needs to become a stable API
   - Using XEN_DOMCTL_MEM_CACHEATTR_WB.
   - xc_domain_pin_memory_cacheattr can likely be removed from libxc

xendevicemodel_destroy_vram_region:
   - xen-hvm.c:xen_remove_from_physmap, implicit check via presence of
     physmap, which is only for vram (see xen_add_to_physmap)
        - XENMEM_add_to_physmap
        - Don't need to undo pin_mem_cacheattr?
docs/misc/toolstack-library-abis.pandoc
tools/libs/devicemodel/include/xendevicemodel.h