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=-2.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, 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 CA7BCC35247 for ; Thu, 6 Feb 2020 23:46:20 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9591120730 for ; Thu, 6 Feb 2020 23:46:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="g7NDdQnh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9591120730 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:48038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izqqh-0007FZ-OE for qemu-devel@archiver.kernel.org; Thu, 06 Feb 2020 18:46:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47563) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izqq0-0006r0-0H for qemu-devel@nongnu.org; Thu, 06 Feb 2020 18:45:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izqpw-0007Mz-Rz for qemu-devel@nongnu.org; Thu, 06 Feb 2020 18:45:35 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:51176 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1izqpw-0007LK-Nz for qemu-devel@nongnu.org; Thu, 06 Feb 2020 18:45:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581032731; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=phD6NLa6Xg7bmJEDNA98lq0zDp5UNkQWOeV4kzA6fPQ=; b=g7NDdQnhjf8XGTeovy7DuiP1XXnqy1Y/wGXTbJ44mFmrB3S/Hmpbc4jqtYGqjjwUy5pKfk ccNryen0jPfv+3kfUERJoiCeN/qfx825Bh1i2P1tb7JjlBfdswBY+vX1VGmAe76fnfODVP 6ALwOSjkLH6EkD6QupmMUk4nOsDb0R8= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-355-7L-XjknpOgiugLw55gsxYw-1; Thu, 06 Feb 2020 18:45:23 -0500 Received: by mail-wr1-f71.google.com with SMTP id x15so272671wrl.15 for ; Thu, 06 Feb 2020 15:45:23 -0800 (PST) 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:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=phD6NLa6Xg7bmJEDNA98lq0zDp5UNkQWOeV4kzA6fPQ=; b=PK7TbWt3OFxRrPaZtnLDhDtiAGtIVYbdKqIsBGEWI937Z8QtrnlhRb668HZyQD7Et7 kWFa/CZbkHscbDTDGtiat1kpA/m/mNmJ6LMo/FprBh8Yn1Ru5sO6K76hUVyzL6Hw6RYJ 69vkyWb1jNBb8foc3bTNX5LXFKCOQyMS9Xmltz8E9O7h2ocZo7fAiGMZBQqk7w4nvUfz lBp9wE8Vp/nWFlFhv1FKTK3tcNp7YtcwF8cbqbg9DmxYboZU9CTXnF17+b2Jo2I4KMF4 OWIc0oHxu0Xpz0a86l1QBFye6awDqE+ZsskFM/S60LHGardmTpdogdhhYHdMvcnUh839 Rgsw== X-Gm-Message-State: APjAAAV2QrXMRKvK7lBjuGCRs0NEgDwKOtzTHht7diTiyM9HewsTC7o8 WEkI5gA1rKzxC8J86yE2q+DY1am1rs5fkjZQ1AvQy6ZgXHyJPDFJakSLC5BFgA6z3ikuZfU3wQo lhSi+hYktmse4ZgE= X-Received: by 2002:a5d:4e0a:: with SMTP id p10mr508518wrt.229.1581032722065; Thu, 06 Feb 2020 15:45:22 -0800 (PST) X-Google-Smtp-Source: APXvYqwfzCVfGxp9tu9n8Cifpa3ILvRPW06BRSX+x1/+y+u5KCFdOAESof8Ez6SMORs9S/JA7ev7IQ== X-Received: by 2002:a5d:4e0a:: with SMTP id p10mr508498wrt.229.1581032721834; Thu, 06 Feb 2020 15:45:21 -0800 (PST) Received: from ?IPv6:2001:b07:6468:f312:a9f0:cbc3:a8a6:fc56? ([2001:b07:6468:f312:a9f0:cbc3:a8a6:fc56]) by smtp.gmail.com with ESMTPSA id x132sm14931411wmg.0.2020.02.06.15.45.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Feb 2020 15:45:21 -0800 (PST) Subject: Re: VW ELF loader To: Alexey Kardashevskiy , David Gibson References: <20200203012842.GD52446@umbus.fritz.box> <8420784f-b4c7-9864-8534-b94dbc5f74ff@redhat.com> <71d1cc16-f07d-481d-096b-17ee326157bb@ozlabs.ru> <20200205060634.GI60221@umbus.fritz.box> <62d62fab-46a4-240b-037b-409ba859b93d@redhat.com> <47e6a49d-f1c7-aaf6-b9ef-7e81773cff6e@ozlabs.ru> From: Paolo Bonzini Message-ID: <8993c6b4-2a2c-b7e5-8342-4db480d0af9d@redhat.com> Date: Fri, 7 Feb 2020 00:45:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <47e6a49d-f1c7-aaf6-b9ef-7e81773cff6e@ozlabs.ru> Content-Language: en-US X-MC-Unique: 7L-XjknpOgiugLw55gsxYw-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.81 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Christian Borntraeger , Thomas Huth , qemu-devel , Cornelia Huck , Stefano Garzarella Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 07/02/20 00:17, Alexey Kardashevskiy wrote: > This is a lot and what is exactly the benefit? My alternative does not > need drivers at all. Anything you put in the host is potential attack surface. Plus, you're not doing a different thing than anyone else and as you've found out it may be easy for block device but not for everything else. Every platform that QEMU supports is just using a firmware to do firmware things; it can be U-Boot, EDK-2, SLOF, SeaBIOS, qboot, with varying level of complexity. Some are doing -kernel in QEMU rather than firmware, but that's where things end. Paolo