From mboxrd@z Thu Jan 1 00:00:00 1970 From: Akio Takebe Subject: [Q] why is DIRECT_PCI_STR_LEN 160? Date: Fri, 10 Oct 2008 18:15:17 +0900 Message-ID: <48EF1D25.9030107@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi, Why is DIRECT_PCI_STR_LEN 160? I'd like to know why the qemu says at the following point "qemu: too many pci pass-through devices". #define DIRECT_PCI_STR_LEN 160 char direct_pci_str[DIRECT_PCI_STR_LEN]; void xenstore_parse_domain_config(int hvm_domid) { [... snip ...] if ( strlen(dev) + strlen(direct_pci_str) > DIRECT_PCI_STR_LEN ) { fprintf(stderr, "qemu: too many pci pass-through devices\n"); memset(direct_pci_str, 0, DIRECT_PCI_STR_LEN); goto out; } Best Regards, Akio Takebe