search for: arg_list

Displaying 19 results from an estimated 19 matches for "arg_list".

2017 Mar 24
2
Problem about API difference between LLVM3.5 and LLVM3.9
...ce = func->getType()->getAddressSpace(); 2 FunctionType *new_type = FunctionType::get(new_return_type, arg_types, type->isVarArg( )); 3 func->mutateType(PointerType::get(new_type, address_space)); 4 //Duplicate arguments 5 std::vector<Argument *> arg_list; 6 for each_custom(arg, *func, arg_begin, arg_end) 7 arg_list.push_back(&*arg); 8 for each(arg, arg_list){ 9 Argument *arg_dup = new Argument((*arg)->getType(), makeName(*arg, "_dup")); 10 func->getArgumentList().insertAfter((*arg)-&...
2010 Jul 14
2
[PATCH] gfxboot: add include and menu include support
...;label; @@ -419,19 +443,16 @@ int read_config_file(void) } } - gfx_menu.entries = menu_idx; - gfx_menu.label_size = label_size; - gfx_menu.arg_size = append_size; gfx_menu.default_entry = menu_default->menu_label; - gfx_menu.label_list = calloc(menu_idx, label_size); - gfx_menu.arg_list = calloc(menu_idx, append_size); + gfx_menu.label_list = calloc(gfx_menu.entries, gfx_menu.label_size); + gfx_menu.arg_list = calloc(gfx_menu.entries, gfx_menu.arg_size); for(u = 0, menu_ptr = menu; menu_ptr; menu_ptr = menu_ptr->next, u++) { if(!menu_ptr->append) menu_ptr->app...
2017 Apr 27
4
[PATCH 0/4] common: Add a simple mini-library for handling qemu command and config files.
Currently we have an OCaml library for generating the qemu command line (used only by ‘virt-v2v -o qemu’). However we also generate a qemu command line in ‘lib/launch-direct.c’, and we might in future need to generate a ‘-readconfig’-compatible configuration file if we want to go beyond 10,000 drives for scalability testing. Therefore this patch series reimplements the qemu command line code as
2017 Dec 08
3
[PATCH v2 0/2] v2v: -o null: Use the qemu null device driver.
This changes the infrastructure to allow the target_file to be a QEMU URI. Rich.
2018 Jul 19
0
[PATCH] v2v: Model machine type explicitly.
...match machine with + | I440FX -> "pc" + | Q35 -> "q35" + | Virt -> "virt" in + (* Construct the command line. Note that the [Qemuopts] * module deals with shell and qemu comma quoting. *) @@ -87,8 +95,8 @@ object arg_list "-device" ["vmgenid"; sprintf "guid=%s" genid; "id=vmgenid0"] ); - arg_list "-machine" (if machine_q35 then ["q35"] else [] @ - if smm then ["smm=on"] else [] @ + arg_list "-machine"...
2018 Jun 19
2
[PATCH] v2v: Set machine type explicitly for outputs which support it (RHBZ#1581428).
...t -> "virt" in + (* Construct the command line. Note that the [Qemuopts] * module deals with shell and qemu comma quoting. *) @@ -80,8 +82,8 @@ object flag "-no-user-config"; flag "-nodefaults"; arg "-name" source.s_name; - arg_list "-machine" (if machine_q35 then ["q35"] else [] @ - if smm then ["smm=on"] else [] @ + arg_list "-machine" (machine :: + (if smm then ["smm=on"] else []) @ ["accel=kvm...
2006 Jul 13
3
[PATCH] Update new qemu-dm to spawn vncviewer
...vncParams(self): - # see if a vncviewer was specified + # see if a vncconnect or vncviewer was specified # XXX RN: bit of a hack. should unify this, maybe stick in config space - vncconnect=[] + parm=[] args = self.cmdline if args: arg_list = string.split(args) for arg in arg_list: al = string.split(arg, ''='') - if al[0] == "VNC_VIEWER": - vncconnect=["-vncconnect", "%s" % al[1]] - break - return vnc...
2018 Jun 19
0
Re: [PATCH] v2v: Set machine type explicitly for outputs which support it (RHBZ#1581428).
...(* Construct the command line. Note that the [Qemuopts] > * module deals with shell and qemu comma quoting. > *) > @@ -80,8 +82,8 @@ object > > flag "-no-user-config"; flag "-nodefaults"; > arg "-name" source.s_name; > - arg_list "-machine" (if machine_q35 then ["q35"] else [] @ > - if smm then ["smm=on"] else [] @ > + arg_list "-machine" (machine :: > + (if smm then ["smm=on"] else []) @ >...
2018 Jul 05
4
[PATCH] v2v: Preserve VM Generation ID (RHBZ#1598350).
...20..63b411085 100644 --- a/v2v/output_qemu.ml +++ b/v2v/output_qemu.ml @@ -82,6 +82,13 @@ object flag "-no-user-config"; flag "-nodefaults"; arg "-name" source.s_name; + + (match source.s_genid with + | None -> () + | Some genid -> + arg_list "-device" ["vmgenid"; sprintf "guid=%s" genid; "id=vmgenid0"] + ); + arg_list "-machine" (machine :: (if smm then ["smm=on"] else []) @ ["accel=kvm:tcg"]); diff --git a/...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...er :template => 'layouts/popup-error', :layout => 'help-and-content' - else - render :template => 'layouts/popup-error', :layout => 'popup' - end - end - - # don't define find_opts for array inputs - def json_hash(full_items, attributes, arg_list=[], find_opts={}, id_method=:id) - page = params[:page].to_i - paginate_opts = {:page => page, - :order => "#{params[:sortname]} #{params[:sortorder]}", - :per_page => params[:rp]} - arg_list << find_opts.merge(paginate_opts)...
2018 Jul 05
0
Re: [PATCH] v2v: Preserve VM Generation ID (RHBZ#1598350).
...t; +++ b/v2v/output_qemu.ml > @@ -82,6 +82,13 @@ object > > flag "-no-user-config"; flag "-nodefaults"; > arg "-name" source.s_name; > + > + (match source.s_genid with > + | None -> () > + | Some genid -> > + arg_list "-device" ["vmgenid"; sprintf "guid=%s" genid; > "id=vmgenid0"] > + ); > + > arg_list "-machine" (machine :: > (if smm then ["smm=on"] else []) @ > ["accel=...
2012 Feb 23
7
[PATCH 2/2] RFC: Xen pad logic
...+} + +/* Notify firmware how many CPUs are idle */ +static void xen_acpi_pad_ost(acpi_handle handle, int stat, + uint32_t idle_cpus) +{ + union acpi_object params[3] = { + {.type = ACPI_TYPE_INTEGER,}, + {.type = ACPI_TYPE_INTEGER,}, + {.type = ACPI_TYPE_BUFFER,}, + }; + struct acpi_object_list arg_list = {3, params}; + + params[0].integer.value = ACPI_PROCESSOR_AGGREGATOR_NOTIFY; + params[1].integer.value = stat; + params[2].buffer.length = 4; + params[2].buffer.pointer = (void *)&idle_cpus; + acpi_evaluate_object(handle, "_OST", &arg_list, NULL); +} + +static void xen_acpi_pad...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server
2018 Apr 20
1
[PATCH] v2v: rework handling of CPU topology
...| None -> 1 - | Some v -> v)); - List.push_back a (sprintf "threads=%d" - (match source.s_cpu_threads with - | None -> 1 - | Some v -> v)); - arg_list "-smp" !a - ) - else - arg "-smp" (string_of_int source.s_vcpu); + (match source.s_cpu_topology with + | None -> + arg "-smp" (string_of_int source.s_vcpu) + | Some { s_cpu_sockets; s_cpu_cores; s_cpu_threads } -> +...
2017 Oct 04
0
[PATCH 2/9] ocaml: Replace pattern matching { field = field } with { field }.
...| _ -> false in (* Currently these are required by secure boot, but in theory they @@ -85,7 +85,7 @@ object (match uefi_firmware with | None -> () - | Some { Uefi.code = code } -> + | Some { Uefi.code } -> if secure_boot_required then arg_list "-global" ["driver=cfi.pflash01"; "property=secure"; "value=on"]; diff --git a/v2v/output_rhv.ml b/v2v/output_rhv.ml index c3b2294de..ce2d75c1d 100644 --- a/v2v/output_rhv.ml +++ b/v2v/output_rhv.ml @@ -240,7 +240,7 @@ object Create...
2017 Oct 04
11
[PATCH 0/9] build: Require OCaml >= 4.02.
Per my previous email: https://www.redhat.com/archives/libguestfs/2017-September/msg00203.html I'd like to talk about requiring a more modern version of the OCaml compiler. These commits show some of the code changes which would be possible with OCaml >= 3.12 [which it turns out we already require by accident] and also with OCaml >= 4.02. The latter is my favoured option. Rich.
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
...p_bridge failed (error code = 0x%x)\n", + pr_warn("find_p2p_bridge failed (error code = 0x%x)\n", status); pci_dev_put(dev); } @@ -978,7 +979,7 @@ int acpiphp_eject_slot(struct acpiphp_slot *slot) status = acpi_evaluate_object(func->handle, "_EJ0", &arg_list, NULL); if (ACPI_FAILURE(status)) { - warn("%s: _EJ0 failed\n", __func__); + pr_warn("%s: _EJ0 failed\n", __func__); return -1; } else break; @@ -1009,7 +1010,7 @@ static int acpiphp_check_bridge(struct acpiphp_bridge *bridge) continue; retval =...
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
...p_bridge failed (error code = 0x%x)\n", + pr_warn("find_p2p_bridge failed (error code = 0x%x)\n", status); pci_dev_put(dev); } @@ -978,7 +979,7 @@ int acpiphp_eject_slot(struct acpiphp_slot *slot) status = acpi_evaluate_object(func->handle, "_EJ0", &arg_list, NULL); if (ACPI_FAILURE(status)) { - warn("%s: _EJ0 failed\n", __func__); + pr_warn("%s: _EJ0 failed\n", __func__); return -1; } else break; @@ -1009,7 +1010,7 @@ static int acpiphp_check_bridge(struct acpiphp_bridge *bridge) continue; retval =...
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
...p_bridge failed (error code = 0x%x)\n", + pr_warn("find_p2p_bridge failed (error code = 0x%x)\n", status); pci_dev_put(dev); } @@ -978,7 +979,7 @@ int acpiphp_eject_slot(struct acpiphp_slot *slot) status = acpi_evaluate_object(func->handle, "_EJ0", &arg_list, NULL); if (ACPI_FAILURE(status)) { - warn("%s: _EJ0 failed\n", __func__); + pr_warn("%s: _EJ0 failed\n", __func__); return -1; } else break; @@ -1009,7 +1010,7 @@ static int acpiphp_check_bridge(struct acpiphp_bridge *bridge) continue; retval =...