From owner-freebsd-virtualization@FreeBSD.ORG Wed Mar 27 10:05:48 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5E04F341 for ; Wed, 27 Mar 2013 10:05:48 +0000 (UTC) (envelope-from syuu@dokukino.com) Received: from mail-pb0-f47.google.com (mail-pb0-f47.google.com [209.85.160.47]) by mx1.freebsd.org (Postfix) with ESMTP id 3A0FAAA4 for ; Wed, 27 Mar 2013 10:05:48 +0000 (UTC) Received: by mail-pb0-f47.google.com with SMTP id rp2so5200072pbb.34 for ; Wed, 27 Mar 2013 03:05:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dokukino.com; s=google; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=ovotHR5wcOBH9rptwSOJJdPHTUMePuuBD2pLt91lwbU=; b=bILSKsX0jx+AzzCFVcyhp3owLr06PzlsnaPF1zaUBG6nAwBEqB62vq02fqu2T44E9L b2LRGO3vNX5iUYkSgY0pDUUdsD1m8SXu7OsP/+wxbkpE0dUY7FCNKipUG5e05/hYJk1E bsGLneuSUIPCZncoKQkBtkp/zMOWEpxDWlovE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:x-gm-message-state; bh=ovotHR5wcOBH9rptwSOJJdPHTUMePuuBD2pLt91lwbU=; b=fygRPS1FeXGKV/mgenAMC0Pej4PEgPcFUM0D7fXvyGWA+XqcrgGhI1kz6NJ+Dw4rjl QzvBZM1uIBQu1usj+709IeAW0891KA7pqYU3IBLGay2tksOnhDQLfwsnvktvtcZyB1aY vbyJVxe+iJ/mCNTUeEYQUE2Msv023yfqh0xJTMbuQfNIixHK0wtH1x/YZfYhw5dUWq/r gO6A842Kkx2nV90sh1mJrY43WmTSBL5BhOF8BveuPmfych12svs6p2ASl1JIPjbUoWE+ CQK6L7cGqjbT94USmHo1a1XoQumK3exHEaeOuTIar0drsyI/0eKNbt4Rpv1GchbEAKmW xgTg== X-Received: by 10.66.81.2 with SMTP id v2mr28558583pax.204.1364378742188; Wed, 27 Mar 2013 03:05:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.243.41 with HTTP; Wed, 27 Mar 2013 03:05:02 -0700 (PDT) In-Reply-To: References: From: Takuya ASADA Date: Wed, 27 Mar 2013 19:05:02 +0900 Message-ID: Subject: Re: suspend/resume on BHyVe To: Neel Natu Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQmDtUfw+G8SKjRXKagNTb2CdJFkOBPBDpjS8D8BJJj0umMJHByI0rxPkcJa9brJkMLak/hC Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 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, 27 Mar 2013 10:05:48 -0000 Hi, > A brute force way of figuring out all the state must be saved is to > look at all the initialization functions that are called when a vm and > a vcpu are created. So, this would be vm_create() and vcpu_init() in > the kernel module. I think these things are need to dump by resume action: - guest memory area - struct vmxctx - VMCS page - VLAPIC registers - virtio device state (dumping virtio ring?) - current configuration of bhyve process (with was configured by an arguments passed to bhyve process) Maybe there's more.