From: Jan Kiszka Subject: Re: [RFC PATCH 00/19] Guest introspection Date: Fri, 16 Jun 2017 16:45:47 +0200 Message-ID: <1befe4ae-9c9c-eb3e-589d-775b23ba3152@siemens.com> References: <20170616134348.17725-1-alazar@bitdefender.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , mdontu@bitdefender.com To: Adalbert Lazar , kvm@vger.kernel.org Return-path: Received: from david.siemens.de ([192.35.17.14]:36746 "EHLO david.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752095AbdFPOp6 (ORCPT ); Fri, 16 Jun 2017 10:45:58 -0400 In-Reply-To: <20170616134348.17725-1-alazar@bitdefender.com> Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: On 2017-06-16 15:43, Adalbert Lazar wrote: > This patch series proposes an interface that will allow a guest > introspection tool to monitor and control other guests, in order to > protect them against different forms of exploits. This type of interface > is already present in the XEN hypervisor. > > With the current implementation, the introspection tool connects to > the KVMi (the introspection subsystem from KVM) using a vsock socket, > establishes a main communication channel, used for a few messages > (KVMI_EVENT_GUEST_ON, KVMI_EVENT_GUEST_OFF, KVMI_GET_GUESTS and > KVMI_GET_VERSION). > > Every KVMI_EVENT_GUEST_ON notification, makes the introspection tool > establish a new connection, used to monitor and control that guest. > What prevented building this on top of the already existing guest debug interfaces of KVM, maybe extending it where needed? Could be win-win. Also, this looks like as if it can easily work against the userspace part of the hypervisor - bad idea. API/ABI documentation is missing. Did you check if the concept is portable to other architectures? Another reason to try hard to reuse existing interfaces. Last but not least: LGPL slipped into your kernel parts - the kernel is GPL. Jan -- Siemens AG, Corporate Technology, CT RDA ITP SES-DE Corporate Competence Center Embedded Linux