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=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 94AAEC07E96 for ; Sun, 11 Jul 2021 17:53:00 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (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 E474D610D0 for ; Sun, 11 Jul 2021 17:52:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E474D610D0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1m2dd9-0000QN-4h; Sun, 11 Jul 2021 13:52:39 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1m2dd7-0000QA-8E for kernelnewbies@kernelnewbies.org; Sun, 11 Jul 2021 13:52:37 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 6E80F32008FA; Sun, 11 Jul 2021 13:52:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 11 Jul 2021 13:52:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=kdzn2FO+rR3hbxBVznbFtJcIgpT zsz4/lNsezwrqrK4=; b=of2LpjTbYuauJRotPkUOm/9pG4idCrTdkYr5XLfK2B7 Fmqk+IDBwHjtpizU7H7qfYMBdDs13juJxJCyt75oSDQnBMOmhU2j0TmJEsXrxtuY tmcDqdqdKDkKJlPUd5V714wqVITYOSQYtvG1foHVnISyOIhU0n4EXYEqB4xdCvDv en/Gh55oOm38zQsElXZxt6Ge8Z3FBB8wElMU0vLJS65O/lK8c5NzvY7AW4eorwmN /eIo8mbUjzsVrOKsg19VVC1Gehd5mytYnb1UQ8skHF6Lte+kJsZNNLaj/pmFRDRt JuH+lXD9yXk1q2IIdAfX6xRKGYleF+mgaVgq3WRRfZw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=kdzn2F O+rR3hbxBVznbFtJcIgpTzsz4/lNsezwrqrK4=; b=LLFIVD3b6L9j7B0oWJAyvm h0EwDzMMf8HitYLdzFJ+4ShC0mpsoOJAj7H+KRyjMgXK/1ZkzpNuru9VMeidRh4H 1ONw/cL4+tL3zBN9DvuShAuglZP6P2aNicPmKun+amhOMDI4k1fu3Ygxf61sKcCT 6euL/ukU/pVJ7Cc0DIQx69pyRiuY1osTWwbtVtxQbEzAJfElZ3dYAcZi6N3ospQA 4ZcvBU3ajVzf+9lmDtOIwF2JW09cCpJIwOdVrZwn6Wq0Kb2/z9RavqVjQ7UrEG4R Ni0iO9P8HnTpUDvQtU7jO/hm7JLjMuu6BDfxcfZjEXSqpIAeYDSfFrugAtveMs6A == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddtgdduudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefirhgvghcu mffjuceoghhrvghgsehkrhhorghhrdgtohhmqeenucggtffrrghtthgvrhhnpeevueehje fgfffgiedvudekvdektdelleelgefhleejieeugeegveeuuddukedvteenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhh drtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 11 Jul 2021 13:52:32 -0400 (EDT) Date: Sun, 11 Jul 2021 19:52:31 +0200 From: Greg KH To: Simon Connah Subject: Re: KVM syscalls Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Cc: "kernelnewbies@kernelnewbies.org" X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Sun, Jul 11, 2021 at 05:36:12PM +0000, Simon Connah wrote: > Hi, > > I hope this is an appropriate place to post this question. I want to make a very simple frontend to KVM, but I have no idea what syscalls the Linux kernel exposes to allow userspace programs to work with KVM virtual machines. Can someone point me in the right direction, please? I have no idea where to look for this information. > Look at the include/uapi/linux/kvm* files, that is the interface between userspace and the kernel for KVM. But you might want to look at using something like libvirt, which handles most of this already for you. Or look at the source for libvirt if you want to do it all yourself. Good luck! greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies