From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,SUBJ_ALL_CAPS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80076C32792 for ; Thu, 3 Oct 2019 19:38:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5EB7A20862 for ; Thu, 3 Oct 2019 19:38:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731842AbfJCTij (ORCPT ); Thu, 3 Oct 2019 15:38:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59508 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731750AbfJCTij (ORCPT ); Thu, 3 Oct 2019 15:38:39 -0400 Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EDA87C05AA64 for ; Thu, 3 Oct 2019 19:38:38 +0000 (UTC) Received: by mail-wm1-f71.google.com with SMTP id s19so917612wmj.0 for ; Thu, 03 Oct 2019 12:38:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7QLgfjpHoSlZ+ECWPNFBD+JW0vOaubyrwbW7qiEpfTs=; b=RfFrJ0u/j+EhRtR+AlzPKvmTMjFYI6NOkZqJJElmmEF6UagHFkP1u/JscvIZzHTQP5 ssRMRI1CIagUeXbfhesIQT/DrgxGKaA1uXnmQniK9oRfXETMbQbJTThHzEKm1qyzUNEd 9VJhCm0vF0T16VjU+u1e/VQ4GJlVjhmekEV+NYaNmBkDdZx05IEZFNkwBsSxa7nCwe32 ZmdaOgxyePhWxUYT72+9oRTNA58A1BN8CTq6AmXC6FQwaihrTGVFU9ul3m5ZrTf0KodB ga093zsRZ0NWaXJJhWxy+ccRHkbXDi9FngyvRRR7g1GZXcqXYYd7ehrRngdgwQLAh60q dGrA== X-Gm-Message-State: APjAAAWEOs8FlfOAjCTtWsqjhw6Ce02dYvkem59x8QBoXyfaw2HEClEC 4YrcZcHcfQslLSw7V8c1vol8ojWpFwhjmpe3E6AMS18O3tUz6mONkKddAVZWPGVbyo3T/KKvAKQ ajeJ/rAWcI75x X-Received: by 2002:adf:e28e:: with SMTP id v14mr8548952wri.184.1570131517629; Thu, 03 Oct 2019 12:38:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwaEc996x92Bjfkrt/7/Bp3ePgLBVpbOA1h0uSvOWcidOkSjdp4RwK4EnTkpGFal4Tmi9DFQw== X-Received: by 2002:adf:e28e:: with SMTP id v14mr8548930wri.184.1570131517306; Thu, 03 Oct 2019 12:38:37 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:e56d:fbdf:8b79:c79c? ([2001:b07:6468:f312:e56d:fbdf:8b79:c79c]) by smtp.gmail.com with ESMTPSA id q124sm5331957wma.5.2019.10.03.12.38.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Oct 2019 12:38:36 -0700 (PDT) Subject: Re: DANGER WILL ROBINSON, DANGER To: Jerome Glisse , Mircea CIRJALIU - MELIU Cc: =?UTF-8?Q?Adalbert_Laz=c4=83r?= , Matthew Wilcox , "kvm@vger.kernel.org" , "linux-mm@kvack.org" , "virtualization@lists.linux-foundation.org" , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Konrad Rzeszutek Wilk , Tamas K Lengyel , Mathieu Tarral , =?UTF-8?Q?Samuel_Laur=c3=a9n?= , Patrick Colp , Jan Kiszka , Stefan Hajnoczi , Weijiang Yang , Yu C , =?UTF-8?Q?Mihai_Don=c8=9bu?= References: <20191002192714.GA5020@redhat.com> <20191002141542.GA5669@redhat.com> <20191002170429.GA8189@redhat.com> <20191003154233.GA4421@redhat.com> <20191003183108.GA3557@redhat.com> From: Paolo Bonzini Openpgp: preference=signencrypt Message-ID: Date: Thu, 3 Oct 2019 21:38:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191003183108.GA3557@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 03/10/19 20:31, Jerome Glisse wrote: > So in summary, the source qemu process has anonymous vma (regular > libc malloc for instance). The introspector qemu process which > mirror the the source qemu use mmap on /dev/kvm (assuming you can > reuse the kvm device file for this otherwise you can introduce a > new kvm device file). It should be a new device, something like /dev/kvmmem. BitDefender's RFC patches already have the right userspace API, that was not an issue. Paolo