search for: config_read

Displaying 12 results from an estimated 12 matches for "config_read".

Did you mean: config_ready
2014 Feb 17
2
[PATCH 1/2] fish: small refactor of config reading code
Even though so far there is just one possible setting to read, isolate in an own function the code to parse a configuration file and read the settings out of it. Now there's a new config_t handle used every time, but since config_read would reset an handle completely, there is no behaviour change. --- fish/config.c | 88 +++++++++++++++++++++-------------------------------------- 1 file changed, 31 insertions(+), 57 deletions(-) diff --git a/fish/config.c b/fish/config.c index e9f437a..02d850b 100644 --- a/fish/config.c +++ b/...
2009 May 11
0
[PATCH 1/2] qemu-kvm: add MSI-X support
...return; + } + pdev->config[PCI_CAPABILITY_LIST] = config[PCI_CAP_LIST_NEXT]; + pdev->cap.length -= size; +} + int pci_enable_capability_support(PCIDevice *pci_dev, - uint32_t config_start, PCICapConfigReadFunc *config_read, PCICapConfigWriteFunc *config_write, PCICapConfigInitFunc *config_init) @@ -1015,13 +1038,6 @@ int pci_enable_capability_support(PCIDevice *pci_dev, pci_dev->config[0x06] |= 0x10; // status = capabilities - if (co...
2009 May 11
0
[PATCH 1/2] qemu-kvm: add MSI-X support
...return; + } + pdev->config[PCI_CAPABILITY_LIST] = config[PCI_CAP_LIST_NEXT]; + pdev->cap.length -= size; +} + int pci_enable_capability_support(PCIDevice *pci_dev, - uint32_t config_start, PCICapConfigReadFunc *config_read, PCICapConfigWriteFunc *config_write, PCICapConfigInitFunc *config_init) @@ -1015,13 +1038,6 @@ int pci_enable_capability_support(PCIDevice *pci_dev, pci_dev->config[0x06] |= 0x10; // status = capabilities - if (co...
2009 May 20
0
[PATCHv2-RFC 1/2] qemu-kvm: add MSI-X support
..._CAP_LIST_NEXT]) + if (pdev->config[offset + PCI_CAP_LIST_ID] == cap_id) + break; + + return offset; +} + int pci_enable_capability_support(PCIDevice *pci_dev, - uint32_t config_start, PCICapConfigReadFunc *config_read, PCICapConfigWriteFunc *config_write, PCICapConfigInitFunc *config_init) @@ -1015,15 +1083,6 @@ int pci_enable_capability_support(PCIDevice *pci_dev, if (!pci_dev) return -ENODEV; - pci_dev->config[0x06] |=...
2009 May 20
0
[PATCHv2-RFC 1/2] qemu-kvm: add MSI-X support
..._CAP_LIST_NEXT]) + if (pdev->config[offset + PCI_CAP_LIST_ID] == cap_id) + break; + + return offset; +} + int pci_enable_capability_support(PCIDevice *pci_dev, - uint32_t config_start, PCICapConfigReadFunc *config_read, PCICapConfigWriteFunc *config_write, PCICapConfigInitFunc *config_init) @@ -1015,15 +1083,6 @@ int pci_enable_capability_support(PCIDevice *pci_dev, if (!pci_dev) return -ENODEV; - pci_dev->config[0x06] |=...
2012 Jan 24
2
[PATCH 26/28] pci: convert to QEMU Object Model
...vice *do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus, - const char *name, int devfn, - const PCIDeviceInfo *info) + const char *name, int devfn) { - PCIConfigReadFunc *config_read = info->config_read; - PCIConfigWriteFunc *config_write = info->config_write; + PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev); + PCIConfigReadFunc *config_read = pc->config_read; + PCIConfigWriteFunc *config_write = pc->config_write; if (devfn < 0) {...
2009 Jun 21
0
[PATCHv6 04/12] qemu/pci: check constant registers on load
..._register_device(PCIDevice *pci_dev, PCIBus *bus, pstrcpy(pci_dev->name, sizeof(pci_dev->name), name); memset(pci_dev->irq_state, 0, sizeof(pci_dev->irq_state)); pci_set_default_subsystem_id(pci_dev); + pci_init_cmask(pci_dev); pci_init_wmask(pci_dev); if (!config_read) @@ -366,6 +385,7 @@ void pci_register_bar(PCIDevice *pci_dev, int region_num, } *(uint32_t *)(pci_dev->config + addr) = cpu_to_le32(type); *(uint32_t *)(pci_dev->wmask + addr) = cpu_to_le32(wmask); + *(uint32_t *)(pci_dev->cmask + addr) = 0xffffffff; } static void pc...
2009 Jun 21
0
[PATCHv6 04/12] qemu/pci: check constant registers on load
..._register_device(PCIDevice *pci_dev, PCIBus *bus, pstrcpy(pci_dev->name, sizeof(pci_dev->name), name); memset(pci_dev->irq_state, 0, sizeof(pci_dev->irq_state)); pci_set_default_subsystem_id(pci_dev); + pci_init_cmask(pci_dev); pci_init_wmask(pci_dev); if (!config_read) @@ -366,6 +385,7 @@ void pci_register_bar(PCIDevice *pci_dev, int region_num, } *(uint32_t *)(pci_dev->config + addr) = cpu_to_le32(type); *(uint32_t *)(pci_dev->wmask + addr) = cpu_to_le32(wmask); + *(uint32_t *)(pci_dev->cmask + addr) = 0xffffffff; } static void pc...
2005 Aug 26
0
Installing Ices on OSX 10.4.2
...signedness cfgparse.c:377: warning: pointer targets in assignment differ in signedness cfgparse.c:380: warning: pointer targets in passing argument 1 of 'xmlStrdup' differ in signedness cfgparse.c:380: warning: pointer targets in assignment differ in signedness cfgparse.c: In function 'config_read': cfgparse.c:444: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness source='stream.c' object='stream.o' libtool=no \ depfile='.deps/stream.Po' tmpdepfile='.deps/stream.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONF...
2008 Jun 27
32
[PATCH][RFC] Support more Capability Structures and Device Specific
I am submitting the patch which supports more Capability Structures and Device Specific Registers for passthrough device. In Xen 3.3 unstable, qemu-dm supports Configuration Header, MSI Capability Structure, and MSI-X Capability Structure. But qemu-dm does not support PCI Express Capability Structure, Device Specific Registers, etc (writing them is ignored). To support various I/O devices, I
2016 Sep 08
4
[PATCH 0/3] Use gnulib's getprogname
Hi, this series update libguestfs to a recent gnulib version, so that we can use its new getprogname module, and solve altogether one of the porting issues (the need for 'program_name' by the error module of gnulib), and have a single way to get the name of the current program. A number of changes in tools mostly, although mechanical. Thanks, Pino Toscano (3): Update gnulib to latest
2015 Feb 14
2
[PATCH 0/2] Change guestfs__*
libguestfs has used double and triple underscores in identifiers. These aren't valid for global names in C++. (http://stackoverflow.com/a/228797) These large but completely mechanical patches change the illegal identifiers to legal ones. Rich.