From owner-freebsd-virtualization@FreeBSD.ORG Wed Jun 3 17:12:19 2015 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 729C1972 for ; Wed, 3 Jun 2015 17:12:19 +0000 (UTC) (envelope-from stefan.andritoiu@gmail.com) Received: from mail-ob0-x22c.google.com (mail-ob0-x22c.google.com [IPv6:2607:f8b0:4003:c01::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3C0081FCA for ; Wed, 3 Jun 2015 17:12:19 +0000 (UTC) (envelope-from stefan.andritoiu@gmail.com) Received: by obew15 with SMTP id w15so13222382obe.1 for ; Wed, 03 Jun 2015 10:12:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=kDxLi7fyKX6oMHp/yn2AcMDqiDsfd3zpByWTow9DL3Y=; b=yrzEihRj7fd1jGYZpjbDfEZ0Yds85VCyruLERj7RwyBee2w8r27UAw8ZwRq8tErbSQ uFZWSE76hN0r22H07qp4B/nohTAlEJsvMKPkN1Bel6pqx95WRaA3nG9BUTzJT67m/N6A w0Ie2jPqlLXW5X6Kml0HUBlhTnSs8idNuK2cyTM7cPYErHHr/BdxSWIymhZhwUscTceE X7qMzSngL+CCIQFhdac7mlqpBS3E3p4+I8rER2EIrnha999FdcwuIoICOleib9e41ZSV gT/mdACU4RRr84spTQei26/ju66Ceg8yptwuh+2n83X9E6xLsTthrVvmxzBlbGK8APVR HBUg== MIME-Version: 1.0 X-Received: by 10.60.132.208 with SMTP id ow16mr28351079oeb.66.1433351538254; Wed, 03 Jun 2015 10:12:18 -0700 (PDT) Received: by 10.60.82.168 with HTTP; Wed, 3 Jun 2015 10:12:18 -0700 (PDT) Date: Wed, 3 Jun 2015 20:12:18 +0300 Message-ID: Subject: Where are the VCPU threads created? From: Stefan Andritoiu To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2015 17:12:19 -0000 I see that in the main() function of bhyverun.c it adds CPU0 by calling fbsdrun_addcpu(ctx, 0, 0, rip). But I can't find where the other VCPUs are added. Or if the 'guest_ncpus' variable is ever used (except for error checks)