« Previous | Next » 

Revision ee5f20b0

IDee5f20b011cb4a6be6d68106c80389c32202ab6e
Parent 6906a9d8
Child 38e250ba

Added by Guido Trotter about 15 years ago

KVM: split KVM runtime generation and startup

Before we used to generate the kvm command line and then just run it.
With this patch we split the generation from the time it is run,
allowing us to save it and replay it at reboot.

We must take special care about instance nics:
- We can't include them in the saved command line, as they point to
temporary files
- We can't just generate them at exec time, because we would apply
those changes, but not all the other ones, to a running instance,
thus making it inconsistent (for example if an instance had a memory
increased and one more nic, in a soft reboot we would add the nic, but
not the memory)
So we'll just save the instance nic data at the time the kvm runtime
data is generated, and transform it into actual parameters at execution
time.

Reviewed-by: iustinp

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences