{"push_id":627604650,"size":6,"distinct_size":6,"ref":"refs/heads/mem_event_cleanup9","head":"bd6a05c7f428438a5d707ac913cd3f79c5b3e058","before":"94c45e09ba4193451517344f04adcc7d1493f303","commits":[{"sha":"416bee3021e178b836cd67c4db6f90f79d7000c5","author":{"email":"819deb4f5f42efe8ac880e8eb3ca516da1e34b7e@zentific.com","name":"Tamas K Lengyel"},"message":"xen: Introduce monitor_op domctl\n\nIn preparation for allowing for introspecting ARM and PV domains the old\ncontrol interface via the hvm_op hypercall is retired. A new control mechanism\nis introduced via the domctl hypercall: monitor_op.\n\nThis patch aims to establish a base API on which future applications can build\non.\n\nSuggested-by: Andrew Cooper <andrew.cooper3@citrix.com>\nSigned-off-by: Tamas K Lengyel <tamas.lengyel@zentific.com>\nAcked-by: Ian Campbell <ian.campbell@citrix.com>\nAcked-by: Kevin Tian <kevin.tian@intel.com>\nAcked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>\nAcked-by: Tim Deegan <tim@xen.org>\n---\nv9: Rebase on staging\n    Set mov_to_msr_extended to 0 explicitly if not requested\nv8: Style fixes, comment expansion and forward declaration of structs\n    in monitor.h instead of including entire headers\nv7: Convert monitor control fields to a bitfield in Xen\n    Fix XSM checks in monitor_domctl\nv6: Convert monitor control fields to bool_t both in Xen and in libxc\n    Make monitor_domctl more compact by abstracting common patterns\n    Deprecated HVM params remain but throw error both in Xen and in libxc\n    Style fixes\n    Add another field to arch.domain that determines if mem_access emulation\n        is enabled and corresponding mem_access memops to enable/disable it\n    Add XSM check to monitor_domctl\nv5: p2m_vm_event_sanity_check is moved into the monitor_op handler\nv4: Style fixes\n    Only defining struct mov_to_cr and struct debug_event in asm-x86/domain.h\n    Add pause/unpause domain wrapper when enabled a monitor option.","distinct":true,"url":"https://api.github.com/repos/tklengyel/xen/commits/416bee3021e178b836cd67c4db6f90f79d7000c5"},{"sha":"4d999f89cebee7a41c4439b3abe4427b8c8a9932","author":{"email":"819deb4f5f42efe8ac880e8eb3ca516da1e34b7e@zentific.com","name":"Tamas K Lengyel"},"message":"xen/vm_event: Deprecate VM_EVENT_FLAG_DUMMY flag\n\nThere are no use-cases for this flag.\n\nSigned-off-by: Tamas K Lengyel <tamas.lengyel@zentific.com>\nAcked-by: Tim Deegan <tim@xen.org>","distinct":true,"url":"https://api.github.com/repos/tklengyel/xen/commits/4d999f89cebee7a41c4439b3abe4427b8c8a9932"},{"sha":"e3930bab9a0fcaf7f11d168dbda89c0822b96b8c","author":{"email":"819deb4f5f42efe8ac880e8eb3ca516da1e34b7e@zentific.com","name":"Tamas K Lengyel"},"message":"xen/vm_event: Decouple vm_event and mem_access.\n\nThe vm_event subsystem has been artifically tied to the presence of mem_access.\nWhile mem_access does depend on vm_event, vm_event is an entirely independent\nsubsystem that can be used for arbitrary function-offloading to helper apps in\ndomains. This patch removes the dependency that mem_access needs to be supported\nin order to enable vm_event.\n\nA new vm_event_resume function is introduced which pulls all responses off from\ngiven ring and delegates handling to appropriate helper functions (if\nnecessary). By default, vm_event_resume just pulls the response from the ring\nand unpauses the corresponding vCPU. This approach reduces code duplication\nand present a single point of entry for the entire vm_event subsystem's\nresponse handling mechanism.\n\nSigned-off-by: Tamas K Lengyel <tamas.lengyel@zentific.com>\nAcked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>\nAcked-by: Tim Deegan <tim@xen.org>\n---\nv4: Consolidate resume routines into vm_event_resume\n    Style fixes\n    Sort xen/common/Makefile to be alphabetical\nv3: Move ring processing out from mem_access.c to monitor.c in common","distinct":true,"url":"https://api.github.com/repos/tklengyel/xen/commits/e3930bab9a0fcaf7f11d168dbda89c0822b96b8c"},{"sha":"61579231f41f84a592a3fb895164cb8cf584524b","author":{"email":"819deb4f5f42efe8ac880e8eb3ca516da1e34b7e@zentific.com","name":"Tamas K Lengyel"},"message":"xen/vm_event: Relocate memop checks\n\nThe memop handler function for paging/sharing responsible for calling XSM\ndoesn't really have anything to do with vm_event, thus in this patch we\nrelocate it into mem_paging_memop and mem_sharing_memop. This has already\nbeen the approach in mem_access_memop, so in this patch we just make it\nconsistent.\n\nSigned-off-by: Tamas K Lengyel <tamas.lengyel@zentific.com>\nReviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>\nReviewed-by: Tim Deegan <tim@xen.org>\n---\nv7: Minor fixes with returning error codes on rcu lock failure\nv6: Don't pass superfluous cmd to the memops.\n    Unlock rcu's in sharing/paging\n    Style fixes","distinct":true,"url":"https://api.github.com/repos/tklengyel/xen/commits/61579231f41f84a592a3fb895164cb8cf584524b"},{"sha":"c6197b840d345d951ad5369e4623cf968cd1d86d","author":{"email":"819deb4f5f42efe8ac880e8eb3ca516da1e34b7e@zentific.com","name":"Tamas K Lengyel"},"message":"xen/xsm: Split vm_event_op into three separate labels\n\nThe XSM label vm_event_op has been used to control the three memops\ncontrolling mem_access, mem_paging and mem_sharing. While these systems\nrely on vm_event, these are not vm_event operations themselves. Thus,\nin this patch we introduce three separate labels for each of these memops.\n\nSigned-off-by: Tamas K Lengyel <tamas.lengyel@zentific.com>\nReviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>\nAcked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>\nAcked-by: Tim Deegan <tim@xen.org>","distinct":true,"url":"https://api.github.com/repos/tklengyel/xen/commits/c6197b840d345d951ad5369e4623cf968cd1d86d"},{"sha":"bd6a05c7f428438a5d707ac913cd3f79c5b3e058","author":{"email":"819deb4f5f42efe8ac880e8eb3ca516da1e34b7e@zentific.com","name":"Tamas K Lengyel"},"message":"xen/vm_event: Add RESUME option to vm_event_op domctl\n\nThus far mem_access and mem_sharing memops had been able to signal\nto Xen to start pulling responses off the corresponding rings. In this patch\nwe retire these memops and add them to the option to the vm_event_op domctl.\n\nThe vm_event_op domctl suboptions are the same for each ring thus we\nconsolidate them into XEN_VM_EVENT_ENABLE/DISABLE/RESUME.\n\nAs part of this patch in libxc we also rename the mem_access_enable/disable\nfunctions to monitor_enable/disable and move them into xc_monitor.c.\n\nSigned-off-by: Tamas K Lengyel <tamas.lengyel@zentific.com>\nAcked-by: Wei Liu <wei.liu2@citrix.com>\nAcked-by: Tim Deegan <tim@xen.org>\n---\nv6: Style fixes","distinct":true,"url":"https://api.github.com/repos/tklengyel/xen/commits/bd6a05c7f428438a5d707ac913cd3f79c5b3e058"}]}