From owner-freebsd-virtualization@FreeBSD.ORG  Wed Jun  3 10:02:46 2015
Return-Path: <owner-freebsd-virtualization@FreeBSD.ORG>
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 870B75F8
 for <freebsd-virtualization@FreeBSD.org>; Wed,  3 Jun 2015 10:02:46 +0000 (UTC)
 (envelope-from avg@FreeBSD.org)
Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140])
 by mx1.freebsd.org (Postfix) with ESMTP id CB9691431
 for <freebsd-virtualization@FreeBSD.org>; Wed,  3 Jun 2015 10:02:45 +0000 (UTC)
 (envelope-from avg@FreeBSD.org)
Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua
 [212.40.38.100])
 by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id NAA08343;
 Wed, 03 Jun 2015 13:02:43 +0300 (EEST)
 (envelope-from avg@FreeBSD.org)
Received: from localhost ([127.0.0.1])
 by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD))
 id 1Z05VS-0003HZ-UJ; Wed, 03 Jun 2015 13:02:42 +0300
Message-ID: <556ED071.5030009@FreeBSD.org>
Date: Wed, 03 Jun 2015 13:01:21 +0300
From: Andriy Gapon <avg@FreeBSD.org>
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64;
 rv:31.0) Gecko/20100101 Thunderbird/31.7.0
MIME-Version: 1.0
To: Neel Natu <neelnatu@gmail.com>
CC: "freebsd-virtualization@freebsd.org" <freebsd-virtualization@FreeBSD.org>
Subject: Re: bhyve: corrupting zfs pools?
References: <556D9005.4020802@FreeBSD.org>	<556DDDA9.6090005@FreeBSD.org>
 <CAFgRE9G0pp4-HmDZ2mmWyoxc9KNSxcCnWLLh2yrvCwGTXC4q9A@mail.gmail.com>
In-Reply-To: <CAFgRE9G0pp4-HmDZ2mmWyoxc9KNSxcCnWLLh2yrvCwGTXC4q9A@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-BeenThere: freebsd-virtualization@freebsd.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: "Discussion of various virtualization techniques FreeBSD supports."
 <freebsd-virtualization.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-virtualization>, 
 <mailto:freebsd-virtualization-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-virtualization/>
List-Post: <mailto:freebsd-virtualization@freebsd.org>
List-Help: <mailto:freebsd-virtualization-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization>, 
 <mailto:freebsd-virtualization-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Jun 2015 10:02:46 -0000

On 03/06/2015 00:40, Neel Natu wrote:
> Perhaps, but I wasn't able to repro this. I tried your recipe to repro
> on two systems running -current at r283917.
> 
> - Intel Sandybridge server: Xeon E52650  with 8 cores/16 threads and 64GB memory
>   - hdd1/hdd2 on UFS
>   - hdd1/hdd2 on ZFS
> 
> - AMD Opteron server: Opteron 6230 with 8 cores and 16GB memory
>   - hdd1/hdd2 on UFS
> 
> Can you provide some more details about your setup? I can then try to
> repro on a system similar to your setup.
> 
> - uname -a

FreeBSD trant 11.0-CURRENT FreeBSD 11.0-CURRENT #134 r283188+ab4f83f(devel): Fri
May 22 15:55:27 EEST 2015     avg@trant:/usr/obj/usr/src/sys/TRANT  amd64

This is not a pure FreeBSD, there are some local changes, but none to vmm or VM.

> - sysctl hw.model

hw.model: AMD Athlon(tm) II X2 250 Processor

> - sysctl hw.ncpu

hw.ncpu: 2

> - sysctl hw.physmem

hw.physmem: 8029335552

> - sysctl hw.vmm

hw.vmm.npt.pmap_flags: 507
hw.vmm.svm.num_asids: 64
hw.vmm.svm.disable_npf_assist: 0
hw.vmm.svm.features: 15
hw.vmm.svm.vmcb_clean: 959
hw.vmm.vmx.vpid_alloc_failed: 0
hw.vmm.vmx.posted_interrupt_vector: -1
hw.vmm.vmx.cap.posted_interrupts: 0
hw.vmm.vmx.cap.virtual_interrupt_delivery: 0
hw.vmm.vmx.cap.invpcid: 0
hw.vmm.vmx.cap.monitor_trap: 0
hw.vmm.vmx.cap.unrestricted_guest: 0
hw.vmm.vmx.cap.pause_exit: 0
hw.vmm.vmx.cap.halt_exit: 0
hw.vmm.vmx.initialized: 0
hw.vmm.vmx.cr4_zeros_mask: 0
hw.vmm.vmx.cr4_ones_mask: 0
hw.vmm.vmx.cr0_zeros_mask: 0
hw.vmm.vmx.cr0_ones_mask: 0
hw.vmm.ept.pmap_flags: 0
hw.vmm.vrtc.flag_broken_time: 1
hw.vmm.ppt.devices: 0
hw.vmm.iommu.initialized: 0
hw.vmm.bhyve_xcpuids: 4
hw.vmm.topology.cpuid_leaf_b: 1
hw.vmm.topology.cores_per_package: 1
hw.vmm.topology.threads_per_core: 1
hw.vmm.create: beavis
hw.vmm.destroy: beavis
hw.vmm.force_iommu: 0
hw.vmm.trace_guest_exceptions: 0
hw.vmm.ipinum: 251
hw.vmm.halt_detection: 1

> - host filesystem underlying hdd1 and hdd2

It's ZFS.

Thank you!

-- 
Andriy Gapon