machine: move more memory validation to Machine object
commitfb56b7a052e1443409334c579e617e287a7250d3
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Apr 2022 16:53:00 +0000 (14 12:53 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 May 2022 10:29:44 +0000 (12 12:29 +0200)
treefef537f1565dc41a343339c8b4842ee112672860
parent26f88d84dab62e6eb3ec72737ccb155d06049e3a
machine: move more memory validation to Machine object

This allows setting memory properties without going through
vl.c, and have them validated just the same.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220414165300.555321-6-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/machine.c
softmmu/vl.c