From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:46936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guINB-0002jR-2I for qemu-devel@nongnu.org; Thu, 14 Feb 2019 09:52:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guID4-00033F-1a for qemu-devel@nongnu.org; Thu, 14 Feb 2019 09:41:55 -0500 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:55751) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1guICz-0002x3-Po for qemu-devel@nongnu.org; Thu, 14 Feb 2019 09:41:51 -0500 Received: by mail-wm1-x344.google.com with SMTP id r17so6498667wmh.5 for ; Thu, 14 Feb 2019 06:41:40 -0800 (PST) References: <49127da6-814d-4675-21a5-48a8aa764e34@linux.intel.com> <20190205164716.79b9cd08@Igors-MacBook-Pro.local> <20190214123140.53d3cdf6@redhat.com> <6cd527d2-b8d8-0eb9-78eb-a59c3ee4ccc7@gmail.com> <20190214151520.2763805d@redhat.com> From: Marcel Apfelbaum Message-ID: Date: Thu, 14 Feb 2019 16:42:07 +0200 MIME-Version: 1.0 In-Reply-To: <20190214151520.2763805d@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [Qemu-devel] [Issues] PCI hotplug does not work well on pc platform? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: "Liu, Jing2" , yang.zhong@intel.com, qemu-devel On 2/14/19 4:15 PM, Igor Mammedov wrote: > On Thu, 14 Feb 2019 15:12:35 +0200 > Marcel Apfelbaum wrote: > >> Hi Igor, Jing >> >> On 2/14/19 1:31 PM, Igor Mammedov wrote: >>> On Wed, 13 Feb 2019 15:40:57 +0800 >>> "Liu, Jing2" wrote: >>> >>>> Hi Igor, >>>> >>>> Thanks for your reply! >>>> >>>> On 2/5/2019 11:47 PM, Igor Mammedov wrote: >>>>> On Wed, 30 Jan 2019 21:02:10 +0800 >>>>> "Liu, Jing2" wrote: >>>>> >>>>>> Hi everyone, >>>>>> >>>>>> I have two questions. >>>>>> 1. PCI hotplug on pci.0 must manually rescan in guest. The ACPI hotplug >>>>>> handler sends the GPE event to guest but it seems guest doesn't receive >>>>>> it? I tried to open ACPI debug level/layer to 0xffffffff, in order to >>>>>> see if there is any message after device_add in monitor, but no message >>>>>> comes out until I manually rescan. Also tried printk in >>>>>> acpi_ev_gpe_xrupt_handler() and acpi_ev_sci_xrupt_handler(). No output >>>>>> in dmesg. >>>>>> (I'm sure that CONFIG_HOTPLUG_PCI_PCIE=y, CONFIG_HOTPLUG_PCI_CPCI=y, >>>>>> CONFIG_HOTPLUG_PCI=y, CONFIG_HOTPLUG_PCI_ACPI=y) >> What about |CONFIG_HOTPLUG_PCI_SHPC=y ? >> >> | >>>>>> Whether this is a kind of design or a known issue? Does guest receive >>>>>> the request, where can I find the >>>>> does it work with known to work kernels (RHEL7)? >>>>> >>>>> Also sharing used QEMU version and command line could help. >>>>> >>>> Is there any key config of kernel in guest, besides those I listed above? >>> Maybe Marcel knows something about it >>> (CCed) >> May I ask why do you need SHPC hotplug and not the ACPI based hotplug? > I'd say SHPC one is preferred one, ACPI hotplug is rather complicated > QEMU hack to make legacy Windows guest support hotplug of PCI devices. I can understand and agree, but is much less tested; anyway I distinctly remember I fix all the problems with PCI SHPC hotplug, it should work. Thanks, Marcel > > [...]