From owner-freebsd-virtualization@freebsd.org Sun May 7 04:46:08 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 56D53D622E0 for ; Sun, 7 May 2017 04:46:08 +0000 (UTC) (envelope-from akgupt3@gmail.com) Received: from mail-qk0-x229.google.com (mail-qk0-x229.google.com [IPv6:2607:f8b0:400d:c09::229]) (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 0DBD231F for ; Sun, 7 May 2017 04:46:08 +0000 (UTC) (envelope-from akgupt3@gmail.com) Received: by mail-qk0-x229.google.com with SMTP id u75so31357462qka.3 for ; Sat, 06 May 2017 21:46:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=DrIIOITmjmpOPC3VpEB7rr5dfWhd24ePiENjo3itGC4=; b=JBb6DrDGiveg8lemKZ/pOuV3Z2bSJA8VeeG1pDeY1YP+Y3rXvZ786bTHCuG5YP1eOl OfNTH40NeQxg9LI5lhfjbcc2A7db+vIIwLvyecbZgVmWpQvW2sIyZ7DolbMqu3PZtgST exEjs/jq78HlxBD3pzDackT4DMjQ/q7b5Kk93n5w3Y+Vcus5tkxrcn9wXmu7PiEilV84 7NUcNm3uVL/KA0PfdaOKaG3zPwQSguA64+A+DL6R681idYSAy8D9X0TfDH0Ef/9mJez+ NRQCtTBY9tCbPEz7g1qefvoHRlyt0QIDYw2MlpjNOa6+jwj33LVb+cxukx+66kqXYmzI TTxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=DrIIOITmjmpOPC3VpEB7rr5dfWhd24ePiENjo3itGC4=; b=TSi4honFVsyIxSstfMHK/BwrsZ97L7TvtTnmE1e6FUp8SJcPnO0MrbGftVMPmtjjtu Q9dpa2gRin9SqDyA8Gscp8s2LfCad9ZODtyBEJzfvE45zriCroatVTXDwBMyvLjoy3d9 cpvaigzfto1uq1ppzMtzfCBayiavcka8dDaPqhe6ag1cfIKKNDb714WMqnBXqcZc1LG3 svGS+lDLZTGR7WiTw+7ubc00+4AOChZ7OwEZdJ+07FXY8Uh8gPmn/gKwOOqJsfQSxanM nHhA76o8o+Ow3L7xwDEXQtY6S/J5b8uv1DGftggvBlxKOuBvyb6v5hBt/wQFs/+JAEIJ /1HQ== X-Gm-Message-State: AODbwcCqNEN+6cBMa0vGIwTYGg3Nqp9Qdo9Lpk6+ytXsGVTLFe0BN3gn VVPuF+Z+lDJtoD+joedncWs89gR+hMD9 X-Received: by 10.55.134.131 with SMTP id i125mr10027457qkd.17.1494132367065; Sat, 06 May 2017 21:46:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.163.65 with HTTP; Sat, 6 May 2017 21:46:06 -0700 (PDT) From: Anish Date: Sat, 6 May 2017 21:46:06 -0700 Message-ID: Subject: Bhyve now supports AMD-Vi/IOMMU To: FreeBSD virtualization 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, 07 May 2017 04:46:08 -0000 Hi all, Bhyve now supports passthrough or direct assignment on AMD by change r317600 . If the system has AMD IOMMU devices and it is enabled by BIOS[IVRS table], it will show up as ivhdX devices. ivhd0: on acpi0 Instruction to configure VM for passthrough is same as in Intel. We have tested it on very old Phenom and as well as on new Ryzen processors. By default, it is disabled till we get enough feedback. If you are interested in trying it out, set "hw.vmm.amdvi.enable" to "1" and reload vmm.ko. Please try it out and let us know how it goes. -Anish anish@freebsd.org