[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Publicity] Stealthy monitoring with Xen altp2m
Hi Razvan, On Jan 4, 2016 5:43 PM, "Razvan Cojocaru" <rcojocaru@xxxxxxxxxxxxxxx> wrote: Yes, that's a nicer way to state it. > and there are ways around that - see the emulator bypass patch in our By default the only option is Xen's emulator so that's what I think should be discussed. Using another emulator, while probably possible, would certainly not be trivial. > That's six context switches + emulation. > It's done in the same hypercall you have to issue anyway for vm_event to signal the request has been processed so this adds no extra. > 3. get singlestep event from the hypervisor / guest (more context Here indeed there is an extra step of delivering the event to the subscriber. > 4. switch altp2m view again + set singlestepping off (again context This is again done in the reply directly so no extra hypercalls. So overall this is eight context switches but no emulation. In a nutshell, performance will of course vary and I have no in-depth analysis showing one to be better then the other one. Depending on how complex the emulation is one may be faster in some cases and slower in others. The argument for the altp2m solution is that it avoids emulation and reduces complexity, without pausing all vCPUs on the system. > I don't think it does either. > Certainly, that's a use-case for which the emulation based solution is still suitable for. That however is beyond the point of simple monitoring and would be more like an IPS solution. > You don't need a separate altp2m view for each vCPU. All you need is two views that can be interchanged in each vCPU independently. > Certainly, having access to the emulator does have its usecases. While the For the usecase of monitoring arbitrary memory accesses and code execution on multi-vCPU systems it is the only readily available solution at the moment. Using the emulator in this fashion unfortunately crashes the guest (that's the case you verified too, we should probably report that issue on xen-devel). But even if the emulator worked properly, provided the long list of bugs we have encountered in emulators in recent years I would not be surprised to find more issues. So if it can be avoided, it should be. And in this case it can be quite nicely. > Thanks! _______________________________________________ Publicity mailing list Publicity@xxxxxxxxxxxxxxxxxxxx http://lists.xenproject.org/cgi-bin/mailman/listinfo/publicity
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |