From mboxrd@z Thu Jan 1 00:00:00 1970 From: Razvan Cojocaru Subject: Re: [PATCH v4 15/15] tools/xen-access: altp2m testcases Date: Sat, 11 Jul 2015 09:06:22 +0300 Message-ID: <55A0B25E.5090602@bitdefender.com> References: <1436489553-6300-1-git-send-email-edmund.h.white@intel.com> <1436489553-6300-16-git-send-email-edmund.h.white@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "Lengyel, Tamas" , Ed White Cc: Ravi Sahita , Wei Liu , George Dunlap , Tim Deegan , Ian Jackson , Xen-devel , Jan Beulich , Andrew Cooper , Daniel De Graaf List-Id: xen-devel@lists.xenproject.org On 07/10/2015 04:35 AM, Lengyel, Tamas wrote: > > @@ -546,6 +652,23 @@ int main(int argc, char *argv[]) > } > > break; > + case VM_EVENT_REASON_SINGLESTEP: > + printf("Singlestep: rip=%016"PRIx64", vcpu %d\n", > + req.regs.x86.rip, > + req.vcpu_id); > + > + if ( altp2m ) > + { > + printf("\tSwitching altp2m to view %u!\n", > altp2m_view_id); > + > + rsp.reason = VM_EVENT_REASON_MEM_ACCESS; > > > So this was a workaround for v3 of the series that is no longer > necessary - it's probably cleaner to have the same reason set for the > response as the request was. It's not against any rule, so the code is > still correct and works, it's just not best practice. So in case there > is another round on the series, it could be fixed then. With or without that change (but preferably with it): Reviewed-by: Razvan Cojocaru