Re: Does reboot clear RAM?

2019-11-12 Thread Joachim Durchholz
Am 12.11.19 um 02:20 schrieb Jakob Bohm: On 11/11/2019 20:27, Joachim Durchholz wrote: Am 11.11.19 um 15:35 schrieb Jakob Bohm: On physical machines, the following mechanisms are common: 1. DRAM chips physically loose their contents after a few seconds of power    off, I am by no way an

microvm machine: interrupts not received after initial virtqueue kick as expected

2019-11-12 Thread Waldek Kozaczuk
Hi, In the last couple of days, I have been trying to run OSv ( https://github.com/cloudius-systems/osv) on new microvm machine and I came across a problem I need some advice to solve. In short, when I try to boot OSv with a single block device, it properly detects and completes the 8-steps

kvm steels my flash drives

2019-11-12 Thread ToddAndMargo
Hi All, Fedora 31 qemu-kvm-4.1.0-5.fc31.x86_64 If I have a virtual machine running and I insert a flash drive into a USB socket, the virtual machine steels the flash drive from the host, not that it will actually work in the VM, which they don't. To get them to work in my VM's I have to add

Re: How to initiate power-off in quest with new microvm machine type

2019-11-12 Thread Waldek Kozaczuk
Thanks for your help. Indeed adding '-no-reboot' to QEMU parameters list and triggering triple-fault in guest did the trick. Actually the guest OS I am testing on QEMU with microvm is OSv. And with your help, I have just managed to boot OSv on it in under 3ms: OSv v0.54.0-29-g3357ae07 CmdLine:

Re: How to initiate power-off in quest with new microvm machine type

2019-11-12 Thread Sergio Lopez
Paolo Bonzini writes: > On 12/11/19 16:48, Sergio Lopez wrote: >> >> Peter Maydell writes: >> >>> On Tue, 12 Nov 2019 at 15:22, Waldek Kozaczuk wrote: Hi, I am referring to the machine type described here -

Re: How to initiate power-off in quest with new microvm machine type

2019-11-12 Thread Paolo Bonzini
On 12/11/19 16:48, Sergio Lopez wrote: > > Peter Maydell writes: > >> On Tue, 12 Nov 2019 at 15:22, Waldek Kozaczuk wrote: >>> >>> Hi, >>> >>> I am referring to the machine type described here - >>> https://github.com/qemu/qemu/blob/master/docs/microvm.rst. I would like to >>> know how to

Re: How to initiate power-off in quest with new microvm machine type

2019-11-12 Thread Sergio Lopez
Peter Maydell writes: > On Tue, 12 Nov 2019 at 15:22, Waldek Kozaczuk wrote: >> >> Hi, >> >> I am referring to the machine type described here - >> https://github.com/qemu/qemu/blob/master/docs/microvm.rst. I would like to >> know how to initiate power-off sequence from a guest given that

Re: How to initiate power-off in quest with new microvm machine type

2019-11-12 Thread Peter Maydell
On Tue, 12 Nov 2019 at 15:22, Waldek Kozaczuk wrote: > > Hi, > > I am referring to the machine type described here - > https://github.com/qemu/qemu/blob/master/docs/microvm.rst. I would like to > know how to initiate power-off sequence from a guest given that ACPI is not > available. On

Re: Does reboot clear RAM?

2019-11-12 Thread Peter Maydell
On Tue, 12 Nov 2019 at 10:32, Narcis Garcia via wrote: > > I'm now supposing that Qemu is currently assigning RAM to guest with > host's RAM garbage: A host leak to guest? No, memory initially created and assigned to the guest is zeroed[*]. We just don't re-zero it when the guest reboots. [*]

Re: Does reboot clear RAM?

2019-11-12 Thread Narcis Garcia via
I'm now supposing that Qemu is currently assigning RAM to guest with host's RAM garbage: A host leak to guest? El 12/11/19 a les 2:20, Jakob Bohm ha escrit: > On 11/11/2019 20:27, Joachim Durchholz wrote: >> Am 11.11.19 um 15:35 schrieb Jakob Bohm: >>> On physical machines, the following