docs: s/core/cores

Acked-by: huntxu <mhuntxu@gmail.com>
Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
docs: Add example memory configuration

Now, only memory size can be configured, other settings like balloon
will be supported later.

Acked-by: huntxu <mhuntxu@gmail.com>
Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
vm_control: Add cpu configuration

TODO: numa configuration

Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
vm_control: Add memory configuration

Only memory size can be configured now

Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
vm_control: Code cleanup

Cleanup redundancy code, make code more clear

Acked-by: huntxu <mhuntxu@gmail.com>
Signed-off-by: Dunrong Huang <riegamaths@gmail.com>