Date: Tue, 2 Apr 2013 18:37:36 +0900 From: Takuya ASADA <syuu@dokukino.com> To: Iori YONEJI <fivo.11235813@gmail.com> Cc: "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org> Subject: Re: suspend/resume on BHyVe Message-ID: <CALG4x-UF-G0FxC0sbR3uEUS4xMcaaNOtRpHF=RP1r4RpaAHprw@mail.gmail.com> In-Reply-To: <CAJ-Y7Vc6_EEnCTx00q3XWFYkMiUrPSziV8d403ah-KPPFnbYiw@mail.gmail.com> References: <CAJ-Y7VcZ=EbAesb%2B8Pup1YsSE_yaM_345KZjwibjaC=GMo0xfA@mail.gmail.com> <CAFgRE9FqqJSTrtTA4PmdSsCdbEGi57jHOLZH0EkK83yJ3HqYpQ@mail.gmail.com> <CALG4x-Wrhtq000-5RuVkdmRH%2BcjDvg-vGLaUzxWi9k2o5zEmHw@mail.gmail.com> <CAJ-Y7Vc6_EEnCTx00q3XWFYkMiUrPSziV8d403ah-KPPFnbYiw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
You can dump whole struct just a binary array(don't look into it in your program), and get sizeof(vmxctx) via ioctl return. It should enough to suspend/resume. Then if AMD SVM mode will have different values on the structure, your implementation won't break. Does it make sense? > Peter, Neel And, AMD SVM's vmxctx will not have much difference than Intel's one, I guess. (VMCS/VMCB layout are differ, though. But it's different topic.) 2013=E5=B9=B44=E6=9C=882=E6=97=A5=E7=81=AB=E6=9B=9C=E6=97=A5 Iori YONEJI fi= vo.11235813@gmail.com: > Hi all, > > I couldn't spare much time to consider about this topic because I have > to move to new house, but now I'm OK. > > I'm implementing registers-save feature including: > 1. libvmmapi with get_vmxctx > 2. kernel supports of 1. > 3. user-land hack using 1, that saves registers and some > configurations into (possibly msgpack) binary file. > > But I noticed that vmxctx is depending on Intel VT-x, and we also need > to support AMD SVM, > so I need common struct registers. > > I heard about SVM support but it's not in my repository copy(Revision: > 248994), > how much do I have to care about AMD? >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALG4x-UF-G0FxC0sbR3uEUS4xMcaaNOtRpHF=RP1r4RpaAHprw>