search for: get_node

Displaying 20 results from an estimated 45 matches for "get_node".

2017 Feb 18
11
[PATCH 0/8] Miscellaneous cleanups to Windows registry code.
A very miscellaneous set of cleanups to how we handle the Windows registry in virt-v2v, firstboot, and inspection code. This should all be straightforward non-controversial refactoring. Some highlights: - Add a new mllib Registry module containing various utility functions that are currently scattered all around. - Only compute the software/system hive paths once during inspection, and
2016 Dec 17
1
[PATCH] drm/nouveau: use designated initializers
...(struct ttm_mem_type_manager *man, } const struct ttm_mem_type_manager_func nouveau_vram_manager = { - nouveau_vram_manager_init, - nouveau_vram_manager_fini, - nouveau_vram_manager_new, - nouveau_vram_manager_del, + .init = nouveau_vram_manager_init, + .takedown = nouveau_vram_manager_fini, + .get_node = nouveau_vram_manager_new, + .put_node = nouveau_vram_manager_del, }; static int @@ -184,11 +184,11 @@ nouveau_gart_manager_debug(struct ttm_mem_type_manager *man, const char *prefix) } const struct ttm_mem_type_manager_func nouveau_gart_manager = { - nouveau_gart_manager_init, - nouveau_g...
2016 Dec 18
0
[PATCH] drm/nouveau: use designated initializers
...> const struct ttm_mem_type_manager_func nouveau_vram_manager = { > - nouveau_vram_manager_init, > - nouveau_vram_manager_fini, > - nouveau_vram_manager_new, > - nouveau_vram_manager_del, > + .init = nouveau_vram_manager_init, > + .takedown = nouveau_vram_manager_fini, > + .get_node = nouveau_vram_manager_new, > + .put_node = nouveau_vram_manager_del, > }; > > static int > @@ -184,11 +184,11 @@ nouveau_gart_manager_debug(struct ttm_mem_type_manager *man, const char *prefix) > } > > const struct ttm_mem_type_manager_func nouveau_gart_manager = {...
2016 Jun 06
1
[PATCH] v2v:windows: prevent Parallels drivers from loading at boot
...rs g inspect systemroot root current_cs rcaps @@ -344,6 +345,51 @@ if errorlevel 3010 exit /b 0 ) ) disable + and disable_prl_drivers root current_cs = + (* Prevent Parallels drivers from loading at boot. *) + let services = Windows.get_node g root [current_cs; "Services"] in + let prl_svcs = [ "prl_boot"; "prl_dd"; "prl_eth5"; "prl_fs"; "prl_memdev"; + "prl_mouf"; "prl_pv32"; "prl_pv64"; "prl_scsi"; +...
2017 Jul 31
0
[PATCH v11 09/10] daemon: Implement inspection of Windows.
...fields available to callers. + *) +and check_windows_software_registry software_hive data = + with_hive (Sysroot.sysroot () // software_hive) ( + fun h root -> + try + let path = [ "Microsoft"; "Windows NT"; "CurrentVersion" ] in + let node = get_node h root path in + let values = Hivex.node_values h node in + let values = Array.to_list values in + (* Convert to a list of (key, value) to make the following easier. *) + let values = List.map (fun v -> Hivex.value_key h v, v) values in + + (* Look for ProductN...
2013 Mar 21
3
Announce: Puppet Dashboard 1.2.23 Available
...ir exists, is a directory, is readable. #18512 7bc9438 puts is STDOUT.puts 7ea8816 Change deprecated ''ftools'' to ''fileutils''. c244fa2 Daemonize in the Debian / Ubuntu server init. 2b0aad4 Tighten up code for rake api tasks, and move common get_node get_group and get_class methods into a shared helper file. 7753bc5 Comment out specific gem rack version in our vendored Rails Daniel Pittman (1): e362172 (#19304) Upgrade to json_pure 1.7.7 for CVE-2013-0269 Dustin J. Mitchell (4): 775ab52 (#16429) Fix relative URLs of icons in...
2016 Apr 05
0
[PATCH 2/7] v2v: extract controller offset discovery as a function
...2v/windows_virtio.ml +++ b/v2v/windows_virtio.ml @@ -226,18 +226,7 @@ and add_viostor_to_driver_database g root arch current_cs driverdir = *) let controller_path = [ current_cs; "Control"; "Class"; scsi_adapter_guid ] in - let controller_offset = - match Windows.get_node g root controller_path with - | None -> - error (f_"cannot find HKLM\\SYSTEM\\%s in the guest registry") - (String.concat "\\" controller_path) - | Some node -> - let rec loop node i = - let controller_offset = sprintf "%04d"...
2016 Jun 10
0
Re: [PATCH 2/2] v2v: remove the 'graphicsmodedisabled' entry in ESP BCD
...9; key in BCD *) > + fun root -> > + let path = ["Objects"; "{9dea862c-5cdd-4e70-acc1-f32b344d4795}"; > + "Elements"; "23000003"] in > + let boot_mgr_default_link = > + match Windows.get_node g root path with > + | None -> raise Not_found > + | Some node -> node in > + let current_boot_entry = g#hivex_value_utf8 ( > + g#hivex_node_get_value boot_mgr_default_link "Element") in > + let path = ["Objects&...
2016 Apr 05
2
Re: [PATCH 1/7] v2v: check next free oem%d.inf in /Windows/Inf
...; + * "oem1.inf"=hex(0): > + * but if we find "oem1.inf" we'll add "oem2.inf" (etc). > + *) > +and set_free_oem_inf g root guid driver_inf driverdir = > + let path = [ "DriverDatabase"; "DeviceIds"; guid ] in > + match Windows.get_node g root path with > + | None -> > + error (f_"cannot find HKLM\\SYSTEM\\DriverDatabase\\DeviceIds\\%s in the guest registry") guid > + | Some node -> > + let rec loop i = > + let oem_inf = sprintf "oem%d.inf" i in > + if not (g#exists (&...
2016 Apr 05
0
[PATCH 1/7] v2v: check next free oem%d.inf in /Windows/Inf
...scsi_adapter_guid> - * We want to add: - * "oem1.inf"=hex(0): - * but if we find "oem1.inf" we'll add "oem2.inf" (etc). - *) - let oem_inf = - let path = [ "DriverDatabase"; "DeviceIds"; scsi_adapter_guid ] in - match Windows.get_node g root path with - | None -> - error (f_"cannot find HKLM\\SYSTEM\\DriverDatabase\\DeviceIds\\%s in the guest registry") scsi_adapter_guid - | Some node -> - let rec loop node i = - let oem_inf = sprintf "oem%d.inf" i in - let value = g#hi...
2016 Jan 20
1
[PATCH] convert_windows: uninstall Parallels Tools on first boot
...sts = + let uninsts = ref [] in + + Windows.with_hive g software_hive_filename ~write:false + (fun root -> + try + let path = ["Microsoft"; "Windows"; "CurrentVersion"; "Uninstall"] in + let node = + match Windows.get_node g root path with + | None -> raise Not_found + | Some node -> node in + let uninstnodes = g#hivex_node_children node in + + Array.iter ( + fun { G.hivex_node_h = uninstnode } -> + try + let valueh = g#hivex_node_get_va...
2016 Dec 17
1
[PATCH] drm/ttm: use designated initializers
...vers/gpu/drm/virtio/virtgpu_ttm.c +++ b/drivers/gpu/drm/virtio/virtgpu_ttm.c @@ -198,11 +198,11 @@ static void ttm_bo_man_debug(struct ttm_mem_type_manager *man, } static const struct ttm_mem_type_manager_func virtio_gpu_bo_manager_func = { - ttm_bo_man_init, - ttm_bo_man_takedown, - ttm_bo_man_get_node, - ttm_bo_man_put_node, - ttm_bo_man_debug + .init = ttm_bo_man_init, + .takedown = ttm_bo_man_takedown, + .get_node = ttm_bo_man_get_node, + .put_node = ttm_bo_man_put_node, + .debug = ttm_bo_man_debug }; static int virtio_gpu_init_mem_type(struct ttm_bo_device *bdev, uint32_t type, -- 2.7.4...
2016 Sep 02
0
[PATCH] v2v: Don't remove Processor and Intelppm nodes (RHBZ#1372668).
...rs g inspect systemroot root current_cs rcaps - and disable_services root current_cs = - (* Disable miscellaneous services. *) + and disable_xenpv_win_drivers root current_cs = + (* Disable xenpv-win service (RHBZ#809273). *) let services = Windows.get_node g root [current_cs; "Services"] in match services with | None -> () | Some services -> - (* Disable the Processor and Intelppm services - * http://blogs.msdn.com/b/virtual_pc_guy/archive/2005/10/24/484461.aspx - * - * Disable the rhelscsi...
2016 Dec 17
1
[PATCH] drm/ttm: use designated initializers
...vers/gpu/drm/virtio/virtgpu_ttm.c +++ b/drivers/gpu/drm/virtio/virtgpu_ttm.c @@ -198,11 +198,11 @@ static void ttm_bo_man_debug(struct ttm_mem_type_manager *man, } static const struct ttm_mem_type_manager_func virtio_gpu_bo_manager_func = { - ttm_bo_man_init, - ttm_bo_man_takedown, - ttm_bo_man_get_node, - ttm_bo_man_put_node, - ttm_bo_man_debug + .init = ttm_bo_man_init, + .takedown = ttm_bo_man_takedown, + .get_node = ttm_bo_man_get_node, + .put_node = ttm_bo_man_put_node, + .debug = ttm_bo_man_debug }; static int virtio_gpu_init_mem_type(struct ttm_bo_device *bdev, uint32_t type, -- 2.7.4...
2014 Dec 04
0
[PATCH] v2v: Disable autoreboot when converting Windows guests.
...o uninstalling Xen PV driver ) ) disable + and disable_autoreboot root current_cs = + (* If the guest reboots after a crash, it's hard to see the original + * error (eg. the infamous 0x0000007B). Turn off autoreboot. + *) + try + let crash_control = + get_node root [current_cs; "Control"; "CrashControl"] in + g#hivex_node_set_value crash_control "AutoReboot" 4_L (le32_of_int 0_L) + with + Not_found -> () + and install_virtio_drivers root current_cs = (* Copy the virtio drivers to the guest. *) le...
2016 Apr 05
0
Re: [PATCH 1/7] v2v: check next free oem%d.inf in /Windows/Inf
...ot;=hex(0): > > + * but if we find "oem1.inf" we'll add "oem2.inf" (etc). > > + *) > > +and set_free_oem_inf g root guid driver_inf driverdir = > > + let path = [ "DriverDatabase"; "DeviceIds"; guid ] in > > + match Windows.get_node g root path with > > + | None -> > > + error (f_"cannot find > > HKLM\\SYSTEM\\DriverDatabase\\DeviceIds\\%s in the guest registry") > > guid > > + | Some node -> > > + let rec loop i = > > + let oem_inf = sprintf "oem%d.i...
2017 Aug 09
0
[PATCH v12 04/11] New API: Deprecate hivex_value_utf8 and replace with hivex_value_string.
..." /quiet /norestart /l*v+ \"%~dpn0.log\"" ^ " REBOOT=ReallySuppress REMOVE=ALL" ^ (* without these custom Parallels-specific MSI properties the @@ -570,7 +570,7 @@ if errorlevel 3010 exit /b 0 match Registry.get_node reg path with | None -> raise Not_found | Some node -> node in - let current_boot_entry = g#hivex_value_utf8 ( + let current_boot_entry = g#hivex_value_string ( g#hivex_node_get_value boot_mgr_default_link "Element") in...
2018 Dec 04
2
[PATCH FOR DISCUSSION ONLY 0/2] v2v: Copy static IP address information over for Windows guests (RHBZ#1626503).
This patch is just for discussion. There are still a couple of issues that I'm trying to fix. One is that all of the test guests I have, even ones with static IPs, have multiple interfaces, some using DHCP, so the conditions for adding the Powershell script don't kick in. This makes testing very awkward. However a bigger issue is that I think the premise is wrong. In some registries
2014 Dec 02
1
[PATCH NOT TO BE APPLIED] v2v: windows: Make registry changes to all ControlSets, not
[Partly using the mailing list as a backup again ...] This commit changes virt-v2v to make registry changes to all ControlSets, not just the CurrentControlSet. Not sure what difference if any this would make. Rich.
2016 Apr 05
22
[PATCH 0/7] Add support for SUSE virtio windows drivers
Hi there, SUSE ships Virtual Machine Driver Pack for the virtio windows drivers. Get v2v and customize to discover them and use them if available. Cédric Bosdonnat (7): v2v: check next free oem%d.inf in /Windows/Inf v2v: extract controller offset discovery as a function customize: add support for pvvxsvc v2v: extract reusable parts of viostor regedits v2v: adapt the subkey in Enum