search for: parse_option_number

Displaying 2 results from an estimated 2 matches for "parse_option_number".

2018 Apr 03
2
[RFC PATCH 1/3] qemu: virtio-bypass should explicitly bind to a passthrough device
..., etc. In particular this will not DTRT if run before guest assigns bus numbers. > + > + if (!devfn) > + goto out; > + > + pd = strchr(pc, '.'); > + pe = get_opt_name(value, sizeof(value), pc + 1, '.'); > + if (pe != pc + 1) { > + parse_option_number("slot", value, &u64, &local_err); > + if (local_err) { > + error_propagate(errp, local_err); > + return -1; > + } > + slot = (uint16_t)u64; > + } > + if (pd && *(pd + 1) != '\0') { > +...
2018 Apr 04
0
[virtio-dev] Re: [RFC PATCH 1/3] qemu: virtio-bypass should explicitly bind to a passthrough device
...e the guest device correctly. Regards, -Siwei > >> + >> + if (!devfn) >> + goto out; >> + >> + pd = strchr(pc, '.'); >> + pe = get_opt_name(value, sizeof(value), pc + 1, '.'); >> + if (pe != pc + 1) { >> + parse_option_number("slot", value, &u64, &local_err); >> + if (local_err) { >> + error_propagate(errp, local_err); >> + return -1; >> + } >> + slot = (uint16_t)u64; >> + } >> + if (pd && *(pd + 1) != ...