Re: NOVA, NUL, snapshotting
"Sartakov A. Vasily" <[email protected]>
| Newsgroups | gmane.comp.micro-kernel.l4.devel |
|---|---|
| Message-ID | <[email protected]> |
23.08.2013, в 15:23, Udo Steinberg <[email protected]> написал(а): > On Fri, 23 Aug 2013 15:13:35 +0400 Sartakov A. Vasily (SAV) wrote: > > SAV> Could you please describe how to get access to a context of virtual machine? > SAV> How can I modify context of virtual machine from Vancouver? > SAV> When system switches into Vancouver, for example by pressing a special keyboard key, where is stored context of VM? in allocated VMCB? Can I read and modify its from Vancouver? > > If you look at git/nul/vancouver/apps/vancouver/vancouver.cc you'll see > functions like: > > VM_FUNC(PT_VMX + 31, vmx_rdmsr, MTD_RIP_LEN | MTD_GPR_ACDB | MTD_TSC | MTD_SYSENTER | MTD_STATE, > handle_vcpu(pid, true, CpuMessage::TYPE_RDMSR, tls, utcb);) > > This is the handler for VMX portal 31, which handles emulation of the RDMSR > instruction (see NOVA specification Section 7.2 for a list of intercepts). > The portal is configured to transfer a subset of the architectural state > according to the MTD bits (see Section 7.4). The hypervisor stores the > requested state into the UTCB, where the VMM can read and modify it. Section > 7.3 shows the layout of the UTCB with all the state fields. > Thanks, now it is clear: NOVA can intercept commands from guest machine, then call VM functions via portal with saved state in UTCB. I do not understand several things about messaging: I see several reply functions and I know where they are called. for example: sigma0.cc, +1659: case MessageConsole::TYPE_START: And I see, that this message is send from function handle_console_switching hostvga.cc, +179: by calling msg1(MessageConsole::TYPE_START, num -1); I hit a key, a key is processed by host driver, driver decides that this is a command for VM switching, host driver sends message to sigma0, sigma0 does something. What about other commands, like MessageHostOp::OP_GET_MODULE? I see that all modules has a handler for this message, but I do not see who and how call them. -- Sartakov A. Vasily [email protected] _______________________________________________ l4-hackers mailing list [email protected] http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
signature.asc
(application/pgp-signature, 842 B)
-----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJSGGYJAAoJEJl93FGKuRBUNpUQAJv5YrVVW4H4UJk9PfiUncE+ QvF33FgcPpIfn3WPF7L9XZZiXi4Z4C8VgnU+zfbSZC/myRRPQuoThJifbl/Lffk0 KQpbdbVoqNgduAmoVjtD7fLd7ApOc7iBMASatyWuJrXWAlXMDna/9VzUnv6GYHi1 GUlvIdVfI2Yd2cXxO+ruU7/yNZYiAIr5R33LriUZNx2Sm/p004VB1iqOafy3Wl1W A4qSRKweJZZhuN9CSqZGMoFvSUEMGEez+lPtqXs6OD9mZLdGNFoX22BM5DoHuhig fLA+mmCInx6jHoYXNLO1fyXFU8TUImzSNgg86JfZ4JI4U8fePVY30tW8/t1bsweJ NmmZHTWghZyPuXgAHdmBV2iGNXei6+ZCwV9khu5MFLZfj1sb6Yh3uJcS956yyTkx P+AHb8TAhNC5GO0csvjsC4V48Y3049La0KbK3x5qMztjXHLscKQ8W2+v7/mBQN7V 5GGpj49FxxKWyhsuZxDurdcp+b8SFhR5/qUErBZ4fg8I7hgwBo2XMOyaXne7Hqaq N916kIw/2jKBu/W9l9KE3tEgoYZGeOECmi44lzgL6N1Hnfjb7pBGDu7lb4ezGUS+ 8SVMNjpaY2zwp5q9+Xx5XKMtBIqDDF0x2/mm9bxs/RugTPea4YC2TD58Z+C9VtaW 24V3t5f3gTZGtuh1nNaO =3UM+ -----END PGP SIGNATURE-----