{"push_id":1305953943,"size":1,"distinct_size":1,"ref":"refs/heads/int_emul","head":"2fde737e1b8f764364e7ddbe477ac77944595d03","before":"3d41120218e2c2747d174fd301d94bbaa4cd0b92","commits":[{"sha":"2fde737e1b8f764364e7ddbe477ac77944595d03","author":{"name":"Tamas K Lengyel","email":"faed4ee514f93fc724f4025e7e2f21162ef3815f@zentific.com"},"message":"x86/vm_event: Allow overwriting Xen's i-cache used for emulation\n\nWhen emulating instructions Xen's emulator maintains a small i-cache fetched\nfrom the guest memory. This patch extends the vm_event interface to allow\noverwriting this i-cache via a buffer returned in the vm_event response.\n\nWhen responding to a SOFTWARE_BREAKPOINT event (INT3) the monitor subscriber\nnormally has to remove the INT3 from memory - singlestep - place back INT3\nto allow the guest to continue execution. This routine however is susceptible\nto a race-condition on multi-vCPU guests. By allowing the subscriber to return\nthe i-cache to be used for emulation it can side-step the problem by returning\na clean buffer without the INT3 present.\n\nAs part of this patch we rename hvm_mem_access_emulate_one to\nhvm_emulate_one_vm_event to better reflect that it is used in various vm_event\nscenarios now, not just in response to mem_access events.\n\nSigned-off-by: Tamas K Lengyel <tamas.lengyel@zentific.com>\nAcked-by: Razvan Cojocaru <rcojocaru@bitdefender.com>\n---\nCc: Paul Durrant <paul.durrant@citrix.com>\nCc: Jan Beulich <jbeulich@suse.com>\nCc: Andrew Cooper <andrew.cooper3@citrix.com>\nCc: Jun Nakajima <jun.nakajima@intel.com>\nCc: Kevin Tian <kevin.tian@intel.com>\nCc: George Dunlap <george.dunlap@eu.citrix.com>\nCc: Stefano Stabellini <sstabellini@kernel.org>\nCc: Julien Grall <julien.grall@arm.com>\n\nv3: Add BUILD_BUG_ON correctly\n    Style fixes and removing spurious changes\n\nNote: this patch has now been fully tested and works as intended","distinct":true,"url":"https://api.github.com/repos/tklengyel/xen/commits/2fde737e1b8f764364e7ddbe477ac77944595d03"}]}
{"actor":{"display_login":"tklengyel"}}