On Mon, Dec 22, 2014 at 11:57 AM, Zhang Haoyu <zhhy.zhangha...@gmail.com> wrote: > > On 2014/12/22 16:41, Andrey Korolyov wrote: >> On Mon, Dec 22, 2014 at 6:59 AM, Zhang Haoyu <zhhy.zhangha...@gmail.com> >> wrote: >>> Hi, >>> >>> How to get the guest physical memory usage from host? >>> I don't want to introduce a guest-agent to get the info. >>> >>> Thanks, >>> Zhang Haoyu >>> >> >> There`s probably one approach, simular to (currently abandoned) >> virt-dmesg, via peeking to the guest memory directly. What are reasons >> for not leaving this task to agent, as it looks much simpler? >> > In some cases, we are not permitted to install anything in customer's guest > environment. > > Thanks, > Zhang Haoyu
Ok, looks like memory peeking techniques are only a choice then. And, of course, this approach tends to be less flexible, because it depends on a relatively strict requirements for running kernel in a guest.