Re: [Qemu-devel] [PATCH] pc: make sure that guest isn't able to unplug the first cpu

2018-09-10 Thread Igor Mammedov
On Fri, 7 Sep 2018 16:52:17 -0400 "Michael S. Tsirkin" wrote: > On Wed, Aug 29, 2018 at 03:51:38PM +0200, Igor Mammedov wrote: > > On Wed, 29 Aug 2018 09:15:53 -0400 > > "Michael S. Tsirkin" wrote: > > > > > On Wed, Aug 29, 2018 at 10:43:11AM +0200, Igor Mammedov wrote: > > > > On Wed, 29 A

Re: [Qemu-devel] [PATCH] pc: make sure that guest isn't able to unplug the first cpu

2018-09-07 Thread Michael S. Tsirkin
On Wed, Aug 29, 2018 at 03:51:38PM +0200, Igor Mammedov wrote: > On Wed, 29 Aug 2018 09:15:53 -0400 > "Michael S. Tsirkin" wrote: > > > On Wed, Aug 29, 2018 at 10:43:11AM +0200, Igor Mammedov wrote: > > > On Wed, 29 Aug 2018 12:54:40 +1000 > > > David Gibson wrote: > > > > > > > On Tue, Aug 2

Re: [Qemu-devel] [PATCH] pc: make sure that guest isn't able to unplug the first cpu

2018-08-29 Thread Laszlo Ersek
On 08/29/18 15:51, Igor Mammedov wrote: > On Wed, 29 Aug 2018 09:15:53 -0400 > "Michael S. Tsirkin" wrote: > >> On Wed, Aug 29, 2018 at 10:43:11AM +0200, Igor Mammedov wrote: >>> On Wed, 29 Aug 2018 12:54:40 +1000 >>> David Gibson wrote: >>> On Tue, Aug 28, 2018 at 03:18:48PM +0200, Igor

Re: [Qemu-devel] [PATCH] pc: make sure that guest isn't able to unplug the first cpu

2018-08-29 Thread Igor Mammedov
On Wed, 29 Aug 2018 09:15:53 -0400 "Michael S. Tsirkin" wrote: > On Wed, Aug 29, 2018 at 10:43:11AM +0200, Igor Mammedov wrote: > > On Wed, 29 Aug 2018 12:54:40 +1000 > > David Gibson wrote: > > > > > On Tue, Aug 28, 2018 at 03:18:48PM +0200, Igor Mammedov wrote: > > > > On Tue, 28 Aug 2018

Re: [Qemu-devel] [PATCH] pc: make sure that guest isn't able to unplug the first cpu

2018-08-29 Thread Michael S. Tsirkin
On Wed, Aug 29, 2018 at 10:43:11AM +0200, Igor Mammedov wrote: > On Wed, 29 Aug 2018 12:54:40 +1000 > David Gibson wrote: > > > On Tue, Aug 28, 2018 at 03:18:48PM +0200, Igor Mammedov wrote: > > > On Tue, 28 Aug 2018 10:52:37 +1000 > > > David Gibson wrote: > > > > > > > On Mon, Aug 27, 2018

Re: [Qemu-devel] [PATCH] pc: make sure that guest isn't able to unplug the first cpu

2018-08-29 Thread Igor Mammedov
On Wed, 29 Aug 2018 12:54:40 +1000 David Gibson wrote: > On Tue, Aug 28, 2018 at 03:18:48PM +0200, Igor Mammedov wrote: > > On Tue, 28 Aug 2018 10:52:37 +1000 > > David Gibson wrote: > > > > > On Mon, Aug 27, 2018 at 04:02:39PM +0200, Greg Kurz wrote: > > > > On Mon, 27 Aug 2018 13:07:10 +0

Re: [Qemu-devel] [PATCH] pc: make sure that guest isn't able to unplug the first cpu

2018-08-29 Thread David Gibson
On Tue, Aug 28, 2018 at 03:18:48PM +0200, Igor Mammedov wrote: > On Tue, 28 Aug 2018 10:52:37 +1000 > David Gibson wrote: > > > On Mon, Aug 27, 2018 at 04:02:39PM +0200, Greg Kurz wrote: > > > On Mon, 27 Aug 2018 13:07:10 +0200 > > > Igor Mammedov wrote: > > > > > > > The first cpu unplug was

Re: [Qemu-devel] [PATCH] pc: make sure that guest isn't able to unplug the first cpu

2018-08-28 Thread Igor Mammedov
On Tue, 28 Aug 2018 10:52:37 +1000 David Gibson wrote: > On Mon, Aug 27, 2018 at 04:02:39PM +0200, Greg Kurz wrote: > > On Mon, 27 Aug 2018 13:07:10 +0200 > > Igor Mammedov wrote: > > > > > The first cpu unplug wasn't ever supported and corresponding > > > monitor/qmp commands refuse to unplu

Re: [Qemu-devel] [PATCH] pc: make sure that guest isn't able to unplug the first cpu

2018-08-27 Thread David Gibson
On Mon, Aug 27, 2018 at 04:02:39PM +0200, Greg Kurz wrote: > On Mon, 27 Aug 2018 13:07:10 +0200 > Igor Mammedov wrote: > > > The first cpu unplug wasn't ever supported and corresponding > > monitor/qmp commands refuse to unplug it. However guest is able > > to issue eject request either using fol

Re: [Qemu-devel] [PATCH] pc: make sure that guest isn't able to unplug the first cpu

2018-08-27 Thread Igor Mammedov
On Mon, 27 Aug 2018 16:02:39 +0200 Greg Kurz wrote: > On Mon, 27 Aug 2018 13:07:10 +0200 > Igor Mammedov wrote: > > > The first cpu unplug wasn't ever supported and corresponding > > monitor/qmp commands refuse to unplug it. However guest is able > > to issue eject request either using followin

Re: [Qemu-devel] [PATCH] pc: make sure that guest isn't able to unplug the first cpu

2018-08-27 Thread Greg Kurz
On Mon, 27 Aug 2018 13:07:10 +0200 Igor Mammedov wrote: > The first cpu unplug wasn't ever supported and corresponding > monitor/qmp commands refuse to unplug it. However guest is able > to issue eject request either using following command: > # echo 1 >/sys/devices/system/cpu/cpu0/firmware_nod

Re: [Qemu-devel] [PATCH] pc: make sure that guest isn't able to unplug the first cpu

2018-08-27 Thread David Hildenbrand
On 27.08.2018 13:07, Igor Mammedov wrote: > The first cpu unplug wasn't ever supported and corresponding > monitor/qmp commands refuse to unplug it. However guest is able > to issue eject request either using following command: > # echo 1 >/sys/devices/system/cpu/cpu0/firmware_node/eject > or dir

[Qemu-devel] [PATCH] pc: make sure that guest isn't able to unplug the first cpu

2018-08-27 Thread Igor Mammedov
The first cpu unplug wasn't ever supported and corresponding monitor/qmp commands refuse to unplug it. However guest is able to issue eject request either using following command: # echo 1 >/sys/devices/system/cpu/cpu0/firmware_node/eject or directly writing to cpu hotplug registers, which makes