From owner-soc-status@FreeBSD.ORG Wed Jul 17 22:07:04 2013 Return-Path: Delivered-To: soc-status@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 87E47ED6 for ; Wed, 17 Jul 2013 22:07:04 +0000 (UTC) (envelope-from fivo.11235813@gmail.com) Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) by mx1.freebsd.org (Postfix) with ESMTP id 263F4EB6 for ; Wed, 17 Jul 2013 22:07:03 +0000 (UTC) Received: by mail-wi0-f182.google.com with SMTP id m6so2528863wiv.15 for ; Wed, 17 Jul 2013 15:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=k/OUoUQbsa41LotSYRDHcHW95QlLWu53xBbM6NtEW/E=; b=CghHJPe5ztFOOrzTuo+OgbQ6TxEWoTrfVLsOfZHD3XL8B/EzpGd4UnoduZWbRZVm6d xb48Wd0r7Qw5/wZZcn14zgiAL8tPgENNhFNhKcqR3DIP99XWhuQnJtvP8OAi9jHKijq8 bkPg8EgAzYN991R3HPRG3/IIpvXIWhH3NZYiguLl3AIAk5q9A6wsEfqqC9/RbPmeKmN7 HDBjkz2SH9+ybNZfoLm5/9R9DhsIA/gu90PNu3FqgZ8d2NFrkaMS+g1SNQH3nqC6ckCE 3N2Sk1zqxoALoB6aXZTyGXH8dLVV8q+frVmDvfNfyOLxzvcXnrTX8tTkl7vJyqUODGKT JpQw== X-Received: by 10.194.63.229 with SMTP id j5mr6253682wjs.79.1374098823234; Wed, 17 Jul 2013 15:07:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.6.229 with HTTP; Wed, 17 Jul 2013 15:06:43 -0700 (PDT) From: =?UTF-8?Q?Iori=E3=80=80YONEJI?= Date: Thu, 18 Jul 2013 07:06:43 +0900 Message-ID: Subject: GSoC status Week 4 To: soc-status@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jul 2013 22:07:04 -0000 Hi, sorry for absence of contact on soc-status list. I had term-exam at first week, so progress is not so fast but mostly as fast as I thought at first. I have contacted with Neel, but I realized that I must post on soc-status, so I show you my progress I sent to Neel before, and I discuss more detail about that below. == Quote == I'm facing two task in this project. 1. to make a call chain to issue suspend command from userland to kernel 2. to rewrite abstract registers definition that I wrote before First, about 1, I made userland simple command to issue new ioctl()*A call through new vmmapi function, *B but this ioctl() handler produce general protection failure every time. This is because a struct of registers to be saved transmission goes something mistaken, but I'm not sure how to fix it now. So I'm reading other codes transfer a struct to userland and looking for documents. Secondly, about 2, I have made a virtual machine's savable registers definition, and I'm using this in task 1 above,but it was imperfect, so I rewrote this and mostly done. *A ioctl(ctx->fd, VM_GET_VCPUSTATE, vmstate); *B vm_get_allvstate(struct vmctx *ctx, struct vmstate *vmstate) And I have these code in local repository, but I don't know how frequently I should commit to the freebsd repository, anyways, I will commit them if 1's transmission goes well. == Quote end == About problem 1, I knew that General Protection Fault is caused at copyout() function, but it seems a little hard to find good books that show what's exactly going on with copyout() and copyin(). Do you know some documents about them? Second, problem 2 is done, referring to Intel SDM Vol1. Chapter 3 and Vol3. Chapter 24. This registers definition is containing some 'hidden' fields of special registers(like GDTR), so it is a little bit depending on Intel's implementation. In the future work with AMD's CPU, this struct might be changed. Thanks, Iori.