Skip to contentSkip to conversation

why is DIRECT_PCI_STR_LEN 160?

Q Akio Takebe 1 participant 1 message Oct 10, 2008

lore
Share & tools
lore
#0 lore raw

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