Displaying 20 results from an estimated 22 matches for "setglobal".
2017 Jun 04
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
Emitting calls to these functions (written in an .ll file linked in) works
fine, and does the right thing.
%Any = type { i8*, i32 }
define dllexport void @setGlobal(%Any* %ptr, %Any %value) {
store %Any %value, %Any* %ptr
ret void
}
define dllexport %Any @getGlobal(%Any* %ptr) {
%val = load %Any, %Any* %ptr
ret %Any %val
}
Trying to replace the setGlobal call with what should be equivalent
builder.CreateStore(value, ptr)
results in what should end...
2017 Jun 05
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
Since the getelementptrs were implicitly generated by the CreateStore/Load
I'm not sure how to get access to them.
So I hacked the assignment to be done thrice: once using a manual
decomposition into two GEPs and stores, once using the "big" CreateStore,
once via the setGlobal function, printing addresses and memory contents at
each point to the degree that I have access to them.
It seems the following GEPs compute the same address?! I can buy myself not
understanding how GEP works and doing it wrong, but builder.CreateStore()
creates what look like identical GEPs impli...
2017 Jun 06
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...{ i8*, i32 } @debugInt(i32 %6)
> store i32 123, i32* %5, align 4
> %8 = call { i8*, i32 } @debugPointer({ i8*, i32 }* %0)
> store i8* @FixnumClass, i8** %2, align 4
> store i32 123, i32* %5, align 4
> %9 = call { i8*, i32 } @debugPointer({ i8*, i32 }* %0)
> call void @setGlobal({ i8*, i32 }* %0, { i8*, i32 } { i8* @FixnumClass,
> i32 123 })
> %10 = call { i8*, i32 } @debugPointer({ i8*, i32 }* %0)
> ret { i8*, i32 } { i8* @FixnumClass, i32 123 }
> }
>
> Output, now with correct addresses out of the GEPs, and memory being
> modified as expected:
&g...
2017 Jun 06
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...000000ac: IMAGE_REL_I386_DIR32 _foo
> b0: 89 44 24 18 movl %eax, 24(%esp)
> b4: 89 54 24 14 movl %edx, 20(%esp)
> b8: e8 00 00 00 00 calll 0 <_setfoo+0xB9>
> 000000b9: IMAGE_REL_I386_REL32 _setGlobal
> bd: 89 e0 movl %esp, %eax
> bf: c7 00 00 00 00 00 movl $0, (%eax)
> 000000c1: IMAGE_REL_I386_DIR32 _foo
> c5: e8 00 00 00 00 calll 0 <_setfoo+0xC6>
> 000000c6: IMAGE_REL_I38...
2017 Jun 07
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...L_I386_DIR32 _foo
>>> b0: 89 44 24 18 movl %eax, 24(%esp)
>>> b4: 89 54 24 14 movl %edx, 20(%esp)
>>> b8: e8 00 00 00 00 calll 0 <_setfoo+0xB9>
>>> 000000b9: IMAGE_REL_I386_REL32 _setGlobal
>>> bd: 89 e0 movl %esp, %eax
>>> bf: c7 00 00 00 00 00 movl $0, (%eax)
>>> 000000c1: IMAGE_REL_I386_DIR32 _foo
>>> c5: e8 00 00 00 00 calll 0 <_setfoo+0xC6>
>>>...
2016 Sep 27
0
[PATCH 3/3] v2v: bootloaders: improve detection of Grub2 default method
...;/usr/bin/perl"; "-MBootloader::Tools"; "-e"; sprintf "
InitLibrary();
my @sections = GetSectionList(type=>image, image=>\"%s\");
@@ -296,7 +322,8 @@ object (self)
my $newdefault = $section->{name};
SetGlobals(default, \"$newdefault\");
" vmlinuz |] in
- ignore (g#command cmd)
+ ignore (g#command cmd)
+ | MethodNone -> ()
method configure_console = self#grub2_update_console ~remove:false
--
2.7.4
2016 Sep 27
8
[PATCH 0/3] v2v: further bits of Debian/Ubuntu guests supports
Hi,
this series adds a couple bits more in v2v to convert Debian/Ubuntu
(and derived) guests. The series does not complete the support (see
known issues below), but all the patches here should be fit for review
and inclusion. The series does not enable the conversion, yet.
Known issues:
* currently tested with simple local guest images, hence needs testing
with real guests on
2016 Aug 15
2
[PATCH v2] v2v: factor out bootloader handling
...uot;; "-MBootloader::Tools"; "-e"; sprintf "
+ InitLibrary();
+ my @sections = GetSectionList(type=>image, image=>\"%s\");
+ my $section = GetSection(@sections);
+ my $newdefault = $section->{name};
+ SetGlobals(default, \"$newdefault\");
+ " vmlinuz |] in
+ ignore (g#command cmd)
+
+ method configure_console () =
+ grub2_update_console ~remove:false
+
+ method remove_console () =
+ grub2_update_console ~remove:true
+
+ method update () =
+ ignore (g#command [| "...
2015 Nov 20
0
[PATCH] v2v: factor out bootloader handling
...uot;; "-MBootloader::Tools"; "-e"; sprintf "
+ InitLibrary();
+ my @sections = GetSectionList(type=>image, image=>\"%s\");
+ my $section = GetSection(@sections);
+ my $newdefault = $section->{name};
+ SetGlobals(default, \"$newdefault\");
+ " kernel |] in
+ ignore (g#command cmd)
+
+ method configure_console () =
+ grub2_update_console ~remove:false
+
+ method remove_console () =
+ grub2_update_console ~remove:true
+
+ method update () =
+ ignore (g#command [| "...
2016 Aug 15
0
Re: [PATCH v2] v2v: factor out bootloader handling
...:Tools"; "-e"; sprintf "
> + InitLibrary();
> + my @sections = GetSectionList(type=>image, image=>\"%s\");
> + my $section = GetSection(@sections);
> + my $newdefault = $section->{name};
> + SetGlobals(default, \"$newdefault\");
> + " vmlinuz |] in
> + ignore (g#command cmd)
> +
> + method configure_console () =
> + grub2_update_console ~remove:false
> +
> + method remove_console () =
> + grub2_update_console ~remove:true
> +
> +...
2016 Aug 25
2
[PATCH v2] v2v: factor out bootloader handling
...t;-MBootloader::Tools"; "-e"; sprintf "
- InitLibrary();
- my @sections = GetSectionList(type=>image, image=>\"%s\");
- my $section = GetSection(@sections);
- my $newdefault = $section->{name};
- SetGlobals(default, \"$newdefault\");
- " kernel.ki_vmlinuz |] in
- ignore (g#command cmd)
-
(* Even though the kernel was already installed (this version of
* virt-v2v does not install new kernels), it could have an
* initrd that does not have support virtio. There...
2016 Oct 03
4
[PATCH v2 0/3] v2v: further bits of Debian/Ubuntu guests supports
Hi,
this series adds a couple bits more in v2v to convert Debian/Ubuntu
(and derived) guests. The series does not complete the support (see
known issues below), but all the patches here should be fit for review
and inclusion. The series does not enable the conversion, yet.
Known issues:
* currently tested with simple local guest images, hence needs testing
with real guests on
2013 Nov 07
6
[PATCH 0/4] virt-v2v: Add support for SUSE guest conversions
The following series of patches adds support for converting SUSE guests
through virt-v2v. These changes should not impact non-SUSE guest conversions.
Mike Latimer (4):
Add perl-Bootloader support to grub packages
Add conversion support for SUSE guests
Add SUSE to capabilities db and conf
Add SUSE support documentation
lib/Sys/VirtConvert/Converter/Linux.pm | 480
2013 Oct 12
0
Re: [PATCH] virt-v2v: Convert RedHat.pm to Linux.pm - for SUSE support
...9;InitLibrary(); '.
+ 'my @sections = '.
+ 'GetSectionList(type=>image, image=>"'.$path.'"); '.
+ 'my $section = GetSection(@sections); '.
+ 'my $newdefault = $section->{name}; '.
+ 'SetGlobals(default, "$newdefault");']) };
+ }
+}
+
sub check_efi
{
my $self = shift;
@@ -61,15 +131,15 @@ sub check_efi
# Methods for inspecting and manipulating grub legacy
-package Sys::VirtConvert::Converter::RedHat::GrubLegacy;
+package Sys::VirtConvert::Converter::Linux::Grub...
2013 Oct 11
2
Re: [PATCH] virt-v2v: Convert RedHat.pm to Linux.pm - for SUSE support
...9;InitLibrary(); '.
+ 'my @sections = '.
+ 'GetSectionList(type=>image, image=>"'.$path.'"); '.
+ 'my $section = GetSection(@sections); '.
+ 'my $newdefault = $section->{name}; '.
+ 'SetGlobals(default, "$newdefault");']) };
+ }
+}
+
sub check_efi
{
my $self = shift;
@@ -61,15 +131,15 @@ sub check_efi
# Methods for inspecting and manipulating grub legacy
-package Sys::VirtConvert::Converter::RedHat::GrubLegacy;
+package Sys::VirtConvert::Converter::Linux::Grub...
2013 Sep 25
5
Re: [PATCH 3/4] Add SUSE converter
...gt; + 'my @sections = '.
> + 'GetSectionList(type=>image, image=>"'.$path.'"); '.
> + 'my $section = GetSection(@sections); '.
> + 'my $newdefault = $section->{name}; '.
> + 'SetGlobals(default, "$newdefault");']);
> +}
> +
> +# Methods for inspecting and manipulating grub legacy
> +package Sys::VirtConvert::Converter::SUSE::GrubLegacy;
> +
> +use Sys::VirtConvert::Util;
> +
> +use File::Basename;
> +use Locale::TextDomain 'virt-v2v...
2013 Sep 24
5
[PATCH 0/4] Add SUSE guest converter to virt-v2v
This is a new conversion module to convert SUSE Linux and openSUSE guests.
The converter is based on the RedHat module, and should offer the same
functionality on both SUSE and RedHat hosts.
There are a few additional messages in this module, such as reporting of
packages when installing through zypper or the local virt-v2v repo. These
messages don't necessarily flow unless verbose switches
2013 Oct 07
3
Re: [PATCH] virt-v2v: Convert RedHat.pm to Linux.pm - for SUSE support
On Friday, October 04, 2013 09:38:58 AM Matthew Booth wrote:
> It's specifically an error if we're attempting to configure virtio, and
> there's no detected virtio kernel. It shouldn't have been possible to
> get here in that state, hence it's a programmer error. The code below
> attempts to install *any* kernel in the case that we aren't configuring
>
2013 Sep 24
0
[PATCH 3/4] Add SUSE converter
...9;InitLibrary(); '.
+ 'my @sections = '.
+ 'GetSectionList(type=>image, image=>"'.$path.'"); '.
+ 'my $section = GetSection(@sections); '.
+ 'my $newdefault = $section->{name}; '.
+ 'SetGlobals(default, "$newdefault");']);
+}
+
+sub check_efi
+{
+ my $self = shift;
+ my $g = $self->{g};
+
+ # Check the first partition of each device looking for an EFI boot
+ # partition. We can't be sure which device is the boot device, so we just
+ # check them all.
+...
2013 Oct 03
2
[PATCH] virt-v2v: Convert RedHat.pm to Linux.pm - for SUSE support
...9;InitLibrary(); '.
+ 'my @sections = '.
+ 'GetSectionList(type=>image, image=>"'.$path.'"); '.
+ 'my $section = GetSection(@sections); '.
+ 'my $newdefault = $section->{name}; '.
+ 'SetGlobals(default, "$newdefault");']) };
+ }
+}
+
+sub check_efi
+{
+ my $self = shift;
+ my $g = $self->{g};
+
+ # Check the first partition of each device looking for an EFI boot
+ # partition. We can't be sure which device is the boot device, so we just
+ # check the...