From owner-freebsd-virtualization@freebsd.org Sun Apr 2 14:37:00 2017 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A84DCD2AB60 for ; Sun, 2 Apr 2017 14:37:00 +0000 (UTC) (envelope-from akgupt3@gmail.com) Received: from mail-qk0-x233.google.com (mail-qk0-x233.google.com [IPv6:2607:f8b0:400d:c09::233]) (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 64574DCF for ; Sun, 2 Apr 2017 14:37:00 +0000 (UTC) (envelope-from akgupt3@gmail.com) Received: by mail-qk0-x233.google.com with SMTP id d201so67773030qkc.0 for ; Sun, 02 Apr 2017 07:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=qqxvTIxc33HlswDJZCcXLZQgWA87BZpASI2V4tjTiZc=; b=C8VPKhDe2kxbt/7NNlVsEjLVKefgqrAqYIbUwPRplTCWdneX/BXPZcG/roXtgok2Bo A7I1atUU7kUuTXGuCf4QDp6HCwxUcfo+mqBq5TsSjrEOhcCaKS0g93HBBxNwnIDgI0VV XkfivsbPvhTIGS29Awj0COlDRds/X/S7ZWr+cRR2ATCqfn/Tpf9gD4nmcyY5cVbPScc7 0M8qgmjrsgIdbP7+Hpu0XASjXTZPTO7UBPhs442f9iLupnrolZnJFX8J/CmDKtwxZ3Wf Z3ApaKIxpulqB6D+j4rT65KH4dHgd7I/PlAxg4b1C+N0HOSWWvA1Qsi+Mm/bNfO7smVQ NQ+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qqxvTIxc33HlswDJZCcXLZQgWA87BZpASI2V4tjTiZc=; b=kzoVHAc88MM2ylMZeCmbVpbV3mVaWhx0YHZigH1zO5WwO8QRQtVQkU3Nqg4s/VgHYL wVX9GUxKdBEAdPWByB7mP0pklMSUhDYMSSCxthplgL1duPO2NeAEWR10lqMzdHUGpvlD fbNl59x5BOJfQuEghJ7+Sw0NFdsfIU795R7Ot7UrCjQ5WclTHl8QMor9SpJQqFJ7gEoT m9l+rerkY1+eC/MNbeDhfd2xicJ8Bcmv1jCMadvcdsXvPaz53Obv3aFcQrLlGCr06q3u xv4KhcKOlPVByVcRUQzISSgns6XwqyH5D3TjAeJIZwrKpQunp09hPhJttzjLF2G2ZE9P MssQ== X-Gm-Message-State: AFeK/H3YIsQfFIoMqhNRIZ5FRS5AmmqDRfSfk6HRf9wKecPExJc0NxeC4RZYvXYbFRLTzIyOfBBe7ZcYVDuOHw== X-Received: by 10.55.50.11 with SMTP id y11mr10804577qky.154.1491143819480; Sun, 02 Apr 2017 07:36:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.178.73 with HTTP; Sun, 2 Apr 2017 07:36:59 -0700 (PDT) In-Reply-To: <1491127764.4331.1.camel@fastmail.fm> References: <1491127764.4331.1.camel@fastmail.fm> From: Anish Date: Sun, 2 Apr 2017 07:36:59 -0700 Message-ID: Subject: Re: Assigning PCI ethernet interfaces to VMs in bhyve To: Daniel Tihanyi Cc: "freebsd-virtualization@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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: Sun, 02 Apr 2017 14:37:00 -0000 Hi Daniel, For Intel cards only condition is that in the VM, these devices should start at function 0 because of PCI enumeration, always starts at function 0. If you want to assign multiple ports to VM, it can be function 0 and any other function, for example: Host PCI dev 4/0/1 and 4/0/2 are to be assigned to guest at virtual PCI slot 10, assignment can be: 4/0/1 -> 10/0 4/0/2 -> 10/1 Regards, Anish On Sun, Apr 2, 2017 at 3:09 AM, Daniel Tihanyi wrote: > Hello, > > I have a FreeBSD host running VMs on bhyve. I already have a few PCI-X > ethernet cards assigned to each of them, but only with one ethernet > interface. I would like to purchase a few PCI-X Ethernet cards with 4 > interfaces. My question is if it is possible to assign the individual > interfaces on the card to different VMs? On the bhyve Wiki, there is an > example for this, but it is assigning the interfaces into the same VM, > although to different slots. I am planning to use Intel cards for this > of course. Has anyone experience in this? > Thank you very much in advance! > > Daniel Tihanyi