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=-5.3 required=3.0 tests=BAYES_00, 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 136A9C432BE for ; Mon, 30 Aug 2021 17:31:31 +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 7D03F60F57 for ; Mon, 30 Aug 2021 17:31:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7D03F60F57 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=tls.msk.ru Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:51550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKl85-0000Zn-5C for qemu-devel@archiver.kernel.org; Mon, 30 Aug 2021 13:31:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKl3w-0008AP-KA for qemu-devel@nongnu.org; Mon, 30 Aug 2021 13:27:12 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:54363) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKl3u-0007Ie-ML for qemu-devel@nongnu.org; Mon, 30 Aug 2021 13:27:12 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 5C9D7407AD for ; Mon, 30 Aug 2021 20:26:58 +0300 (MSK) Received: from [192.168.177.130] (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with ESMTP id B6D717D for ; Mon, 30 Aug 2021 20:26:58 +0300 (MSK) To: qemu-devel@nongnu.org From: Michael Tokarev Subject: usage of virtio-blk-device etc (microvm?) Message-ID: <95fd8301-713e-fa88-36e0-072860b88e63@msgid.tls.msk.ru> Date: Mon, 30 Aug 2021 20:26:58 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: none client-ip=86.62.121.231; envelope-from=mjt@tls.msk.ru; helo=isrv.corpit.ru X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi! I tried to run the microvm variant of qemu-system, and found out there's very little information about it available. In particular, I wasn't able to have a hdd in the virtual machine using virtio-blk-device like this: -drive file=foo,if=none,id=drv -device virtio-blk-device,drive=drv What modules/options are needed within linux guest to see such a drive? By loading just virtio-blk module (which loads all its dependencies) the drive isn't becoming available, like it usually happens after loading virtio-pci with the pci version of virtio-blk. Also, is there a way to use virtio-blk-device with, say, q35 machine type? That is, to have virtio-BUS too? Thanks!