Re: [Qemu-discuss] qemu-system-tricore requested regions overlap

2016-08-26 Thread Peter Maydell
On 26 August 2016 at 10:02,   wrote:
> Hi
> I'm trying to run a simple hello world with
> qemu-system-tricore -machine tricore_testboard -cpu tc27x -nographic -kernel
> Test.elf
> The program is compiled with tricore-gcc (HighTec) for ROM target. The
> adress range for the code is 0x8000.
> Unfortunately, I got this error message:
>
> (qemu) QEMU 2.6.94 monitor - type 'help' for more information
> (qemu) rom: requested regions overlap (rom phdr #1: Test.elf.
> free=0x8388, addr=0x8378)
> qemu-system-tricore: rom check and register reset failed
>
> The both addresses are in the starup code containing the following
> information
>
> 0x8378 0x83780 g __CTOR_LIST__
> 0x837c 0x837c0 l __CTOR_LIST__
> 0x8380 0x83800 l __CTOR_END__
> 0x8388 0x83880 g __CTOR_END__
> 0x8388 0x83880 g __DTOR_LIST__
> 0x838c 0x838c0 l __DTOR_LIST__
>
>
> I've already checked the the address ranges specified in tricore_testboard.c
> The used code section is defined with
>
> memory_region_init_ram(ext_cram, NULL, "powerlink_ext_c.ram", 2*1024*1024,
> _fatal);
> memory_region_add_subregion(sysmem, 0x8000, ext_cram);

This error message isn't related to the QEMU code for defining
the tricore board -- it's complaining that your ELF file has
two program headers which define overlapping bits of code to
be loaded.

What does tricore-objdump --all-headers Test.elf say?
(I don't know the exact name of the objdump binary for your
cross toolchain, so it might be slightly different.)

thanks
-- PMM



[Qemu-discuss] qemu-system-tricore requested regions overlap

2016-08-26 Thread Fatz

Hi
I'm trying to run a simple hello world with 

qemu-system-tricore -machine tricore_testboard -cpu tc27x -nographic -kernel Test.elf
The program is compiled with tricore-gcc (HighTec) for ROM target. The adress range for the code is 0x8000.

Unfortunately, I got this error message:

 

(qemu) QEMU 2.6.94 monitor - type 'help' for more information
(qemu) rom: requested regions overlap (rom phdr #1: Test.elf. free=0x8388, addr=0x8378)
qemu-system-tricore: rom check and register reset failed

 

The both addresses are in the starup code containing the following information


0x8378 0x8378    0 g __CTOR_LIST__          
0x837c 0x837c    0 l __CTOR_LIST__          
0x8380 0x8380    0 l __CTOR_END__        
0x8388 0x8388    0 g __CTOR_END__            
0x8388 0x8388    0 g __DTOR_LIST__            
0x838c 0x838c    0 l __DTOR_LIST__ 


 

I've already checked the the address ranges specified in tricore_testboard.c
The used code section is defined with

 

memory_region_init_ram(ext_cram, NULL, "powerlink_ext_c.ram", 2*1024*1024, _fatal);
memory_region_add_subregion(sysmem, 0x8000, ext_cram);

 

Any ideas where the problem could be?

 

pete




[Qemu-discuss] team net-if in host VS team net-if in guest

2016-08-26 Thread lejeczek

hi all,
guys/gals, how do you do it?
team interfaces (physical) in the host and pass it to guest? 
or host pass-through two NICs and team them in the guest?

and why?

many thanks



Re: [Qemu-discuss] How to emulate vmx feature in qemu?

2016-08-26 Thread Parfait Tokponnon
-no-kvm because I don't want to expose any host VMX/SVM to the virtual
machine. I just want qemu to emulate the VMX capability. It is possible,
Isn't it?
Anyway removing this option does not solve the problem.
It worths noticing that qemu emulates SVM well in my system.

2016-08-26 7:43 GMT+01:00 Narcis Garcia :

> Why -no-kvm ?
>
>
> El 26/08/16 a les 00:33, Parfait Tokponnon ha escrit:
> > Hello
> >
> > I read from here
> > 
> > that vmx capability support on quemu must be explicitely enable by
> > providing +vmx option to the command but the probllem is that it does
> > not seem to work. In my system, VMX feature is still undetected.
> >
> > Command:
> >
> > |qemu-system-x86_64 -no-kvm -cpu qemu64,+vmx,-svm ... |
> >
> > In my guest OS, when I execute cpuid 1 I get ECX = 0x80802001; bit 5 = 0
> > meaning that my virtual CPU does not have VMX.
> >
> > Is this a bug ?
> >
> > Or there is other way to enable vmx feature in qemu?
> >
> >
> >
> >
> >
> > --
> > Parfait T.
>
>


-- 
Parfait T.


Re: [Qemu-discuss] How to emulate vmx feature in qemu?

2016-08-26 Thread Narcis Garcia
Why -no-kvm ?


El 26/08/16 a les 00:33, Parfait Tokponnon ha escrit:
> Hello
> 
> I read from here
> 
> that vmx capability support on quemu must be explicitely enable by
> providing +vmx option to the command but the probllem is that it does
> not seem to work. In my system, VMX feature is still undetected.
> 
> Command:
> 
> |qemu-system-x86_64 -no-kvm -cpu qemu64,+vmx,-svm ... |
> 
> In my guest OS, when I execute cpuid 1 I get ECX = 0x80802001; bit 5 = 0
> meaning that my virtual CPU does not have VMX.
> 
> Is this a bug ?
> 
> Or there is other way to enable vmx feature in qemu?
> 
> 
> 
> 
> 
> -- 
> Parfait T.