Received: from eggs.gnu.org ([2001:4830:134:3::10]:40025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYsJy-0008FV-AI for qemu-devel@nongnu.org; Sat, 12 Apr 2014 03:25:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYsJp-0002Ed-RX for qemu-devel@nongnu.org; Sat, 12 Apr 2014 03:25:50 -0400 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) From: Alexander Graf In-Reply-To: <5348B6BB.1080503@ozlabs.ru> Date: Sat, 12 Apr 2014 09:25:37 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <19836052-53C6-4CE8-BA6E-7BFEAD8849D4@suse.de> References: <1396530891-6352-1-git-send-email-aik@ozlabs.ru> <1396530891-6352-5-git-send-email-aik@ozlabs.ru> <53468FBD.6040906@suse.de> <5346AB55.8030807@ozlabs.ru> <5347B892.5010107@suse.de> <1397253344.31160.14.camel@pasglop> <5348B6BB.1080503@ozlabs.ru> Subject: Re: [Qemu-devel] [PATCH 4/4] spapr: Add support for time base offset migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: qemu-ppc , "qemu-devel@nongnu.org" , Paul Mackerras > Am 12.04.2014 um 05:44 schrieb Alexey Kardashevskiy : >=20 >> On 04/12/2014 07:55 AM, Benjamin Herrenschmidt wrote: >> On Fri, 2014-04-11 at 11:40 +0200, Alexander Graf wrote: >>>> And G5 uses 33333333. I really do not understand why it is bad to >>>> send-and-check timer frequency. Why? >>>=20 >>> Because the guest will continue to run at a different TB frequency on=20= >>> the new host and break. >>=20 >> Right, which is why we should send it accross so it can be checked and >> we can barf accordingly rather than having random odd things happen :-) >=20 > As I was explained several times already, QEMU does not transfer > configuration (yet) and we only > should implement correct transfer of > parameters (without checking) and specify in the QEMU command line the one= s > which cannot be transferred. Exactly. We should try to migrate only state that the user doesn't specify o= n the command line. >=20 > So with timebase frequency, it should be a command line switch (-machine > option?) which would take frequency and fail if it is POWER7/8 and not > 500MHz. And then libvirt should take care of it (always pass it or have XM= L > tag for it). We can also declare everything before p7 non-migratable. That would also sol= ve the issue. > Same story as with migrating IRQs (which I do now in a hacky > way but I am going to changed it to work via the command line). It's slightly different, but similar. The tb frequency is a hardware constra= int, IRQ numbering isn't. But either way works for me really. I would be happy to make pre-p7 cpus non= -migratable. It'd definitely reduce the test matrix. Alex